74% nhrrob-movies

Code Review | NHRROB Movies

WordPress plugin NHRROB Movies scored74%from 54 tests.

About plugin

  • Plugin page: nhrrob-movies
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: May 5, 2021
  • Latest release: May 5, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: nhrrob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /445 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.71 ▲2.81
Dashboard /wp-admin3.41 ▲0.0650.43 ▼18.38
Posts /wp-admin/edit.php3.52 ▲0.1647.81 ▼5.37
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.53 ▼2.16
Media Library /wp-admin/upload.php3.33 ▲0.1042.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9513.21 ▼0.972.09 ▲0.3343.94 ▼0.65
Dashboard /wp-admin2,237 ▲405.86 ▲0.02100.50 ▼6.9639.65 ▲1.44
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0434.41 ▼4.8132.29 ▼5.51
Add New Post /wp-admin/post-new.php1,561 ▲3022.95 ▼0.23618.99 ▼36.5757.01 ▲1.18
Media Library /wp-admin/upload.php1,416 ▲164.12 ▼0.13111.24 ▲3.8549.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP213452791,031
JSON20025

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 code0.40
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods61
▷ Static methods1626.23%
▷ Public methods5590.16%
▷ Protected methods34.92%
▷ Private methods34.92%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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