Benchmarks
Plugin footprint 65% 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.08MB] [CPU: ▼5.78ms] Passed 4 tests
A check of server-side resources used by NHRROB Movies
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.71 ▲2.81 |
Dashboard /wp-admin | 3.41 ▲0.06 | 50.43 ▼18.38 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.81 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.53 ▼2.16 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.09 ▲3.91 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_nhrrob_movies |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
nhrrob_movies_installed |
widget_recent-comments |
nhrrob_movies_version |
Browser metrics Passed 4 tests
NHRROB Movies: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 13.21 ▼0.97 | 2.09 ▲0.33 | 43.94 ▼0.65 |
Dashboard /wp-admin | 2,237 ▲40 | 5.86 ▲0.02 | 100.50 ▼6.96 | 39.65 ▲1.44 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.03 ▲0.04 | 34.41 ▼4.81 | 32.29 ▼5.51 |
Add New Post /wp-admin/post-new.php | 1,561 ▲30 | 22.95 ▼0.23 | 618.99 ▼36.57 | 57.01 ▲1.18 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.12 ▼0.13 | 111.24 ▲3.85 | 49.03 ▼8.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_nhrrob_movies
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- nhrrob_movies_installed
- widget_theysaidso_widget
- widget_recent-posts
- nhrrob_movies_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nhrrob-movies/includes/Admin/views/movies/index.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/nhrrob-movies/includes/Admin/Movie_List.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nhrrob-movies/includes/Admin/views/movies/create.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/nhrrob-movies/includes/Admin/Movie_List.php on line 6
- > PHP Fatal error
Trait 'Nhrrob\\Movies\\Traits\\Form_Error' not found in wp-content/plugins/nhrrob-movies/includes/Admin/Movie.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/nhrrob-movies/includes/Admin/Movie_List.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nhrrob-movies/includes/Admin/views/movies/edit.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: movie database
nhrrob-movies/nhrrob-movies.php Passed 13 tests
The principal PHP file in "NHRROB Movies" v. 1.0.0 is loaded by WordPress automatically on each request
22 characters long description:
Build a movie database
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,056 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 345 | 279 | 1,031 |
JSON | 2 | 0 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 61 | |
▷ Static methods | 16 | 26.23% |
▷ Public methods | 55 | 90.16% |
▷ Protected methods | 3 | 4.92% |
▷ Private methods | 3 | 4.92% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected