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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.38 ▲1.80 |
Dashboard /wp-admin | 3.32 ▼0.02 | 43.36 ▼15.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.13 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.06 ▼5.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.14 | 1.61 ▼0.03 | 40.51 ▲2.34 |
Dashboard /wp-admin | 2,213 ▲24 | 5.90 ▲0.73 | 109.57 ▲3.99 | 42.19 ▼0.11 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.00 | 39.63 ▼4.98 | 35.67 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,731 | 19.34 ▲1.72 | 892.56 ▲242.02 | 40.44 ▼21.06 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▼0.01 | 94.72 ▼4.92 | 40.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 96 | 200 | 345 |
JavaScript | 1 | 1 | 0 | 8 |
CSS | 1 | 0 | 0 | 4 |
Markdown | 1 | 2 | 0 | 3 |
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 code | 0.41 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 31.58% |
▷ Protected methods | 13 | 68.42% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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