84% rb-external-thumbnail

Code Review | RB External Thumbnail

WordPress plugin RB External Thumbnail scored84%from 54 tests.

About plugin

  • Plugin page: rb-external-thumb...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Apr 7, 2017
  • Number of updates: 14
  • Update frequency: every 38.2 days
  • Top authors: rodrigo73 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,219 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.05ms] Passed 4 tests

An overview of server-side resources used by RB External Thumbnail
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.38 ▲1.80
Dashboard /wp-admin3.32 ▼0.0243.36 ▼15.91
Posts /wp-admin/edit.php3.37 ▲0.0143.13 ▼3.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.06 ▼5.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.11 ▼0.03

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RB External Thumbnail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.141.61 ▼0.0340.51 ▲2.34
Dashboard /wp-admin2,213 ▲245.90 ▲0.73109.57 ▲3.9942.19 ▼0.11
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0039.63 ▼4.9835.67 ▲1.83
Add New Post /wp-admin/post-new.php6,248 ▲4,73119.34 ▲1.72892.56 ▲242.0240.44 ▼21.06
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0194.72 ▼4.9240.35 ▼6.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rb-external-thumbnail/rb-external-thumbnail.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: thumbnail, external, custom

rb-external-thumbnail/rb-external-thumbnail.php Passed 13 tests

"RB External Thumbnail" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
35 characters long description:
External images for post thumbnail.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin360 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP296200345
JavaScript1108
CSS1004
Markdown1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods631.58%
▷ Protected methods1368.42%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin