84% neve-hooks

Code Review | Neve Hooks

WordPress plugin Neve Hooks scored84%from 54 tests.

About plugin

  • Plugin page: neve-hooks
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Aug 14, 2020
  • Number of updates: 3
  • Update frequency: every 171.7 days
  • Top authors: themeisle (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /6,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Neve Hooks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.28 ▼1.68
Dashboard /wp-admin3.31 ▲0.0143.92 ▼2.93
Posts /wp-admin/edit.php3.36 ▲0.0143.81 ▼6.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.99 ▼10.16
Media Library /wp-admin/upload.php3.23 ▲0.0037.98 ▲5.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Neve Hooks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.301.84 ▲0.1343.84 ▲1.67
Dashboard /wp-admin2,206 ▲185.88 ▼0.1396.35 ▼14.5039.88 ▼3.74
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0433.59 ▼2.5036.56 ▼1.10
Add New Post /wp-admin/post-new.php1,533 ▼923.04 ▲4.42642.42 ▲16.8354.84 ▲3.84
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.2499.09 ▼2.4142.84 ▲0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neve-hooks/neve-hooks.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function neve_hooks() in wp-content/plugins/neve-hooks/includes/neve-hooks-markup.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neve-hooks/includes/neve-hooks-customizer.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in neve-hooks/assets to your readme.txt
The official readme.txt might help

neve-hooks/neve-hooks.php Passed 13 tests

Analyzing the main PHP file in "Neve Hooks" version 1.0.1
72 characters long description:
Easily add your own content in Neve using the Hooks panel in customizer.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin107 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3317788
Markdown18019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants1100.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