68% neville-extensions

Code Review | Neville Extensions

WordPress plugin Neville Extensions scored68%from 54 tests.

About plugin

  • Plugin page: neville-extensions
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Jul 4, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: acosmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /9,493 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.69MB] [CPU: ▼50.35ms] Passed 4 tests

Analyzing server-side resources used by Neville Extensions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.1610.80 ▼33.92
Dashboard /wp-admin2.31 ▼0.9912.35 ▼40.82
Posts /wp-admin/edit.php2.31 ▼1.0411.24 ▼41.48
Add New Post /wp-admin/post-new.php2.31 ▼3.5712.68 ▼85.19
Media Library /wp-admin/upload.php2.31 ▼0.929.30 ▼27.39
Instagram Settings /wp-admin/options-general.php?page=nevillex-instagram-settings2.3112.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_neville-w-das
widget_neville-wid-instagram
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Neville Extensions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.41 ▼0.121.71 ▼0.4242.02 ▼2.62
Dashboard /wp-admin2,203 ▲265.59 ▼0.0885.11 ▼12.9239.55 ▼2.87
Posts /wp-admin/edit.php2,111 ▲112.04 ▲0.0435.43 ▼4.4534.56 ▼2.87
Add New Post /wp-admin/post-new.php6,249 ▲4,72126.04 ▲2.88930.20 ▲264.0173.62 ▲16.49
Media Library /wp-admin/upload.php1,408 ▲84.20 ▼0.1598.08 ▼6.7043.36 ▼1.77
Instagram Settings /wp-admin/options-general.php?page=nevillex-instagram-settings8402.0227.7832.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/neville-extensions/widgets/instagram/instagram-class.php+58
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_neville-w-das
    • db_upgraded
    • widget_neville-wid-instagram
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nevillex-instagram-settings
    • > Notice in wp-content/plugins/neville-extensions/settings-pages/instagram.php+87
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Nevillex_Widgets_Base' not found in wp-content/plugins/neville-extensions/widgets/ads/ads.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neville-extensions/sections/init.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/neville-extensions/sections/category/category.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neville-extensions/widgets/init.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Nevillex_Widgets_Base' not found in wp-content/plugins/neville-extensions/sections/ads/ads.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neville-extensions/widgets/instagram/instagram-tmpl.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/neville-extensions/widgets/base.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neville-extensions/settings-pages/instagram.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Nevillex_Widgets_Base' not found in wp-content/plugins/neville-extensions/sections/instagram/instagram.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Nevillex_Widgets_Base' not found in wp-content/plugins/neville-extensions/widgets/instagram/instagram.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please add at least on tag
The official readme.txt is a good inspiration

neville-extensions/neville-extensions.php Passed 13 tests

The main PHP script in "Neville Extensions" version 1.0.0 is automatically included on every request by WordPress
118 characters long description:
Adds front page sections (Instagram, Ads), a post title design option and other extensions to Neville WordPress theme.

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
There were no executable files found in this plugin1,647 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP214408931,595
JavaScript2154242
CSS11810

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity17.71
▷ Minimum class complexity6.00
▷ Maximum class complexity35.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods38.33%
▷ Public methods3391.67%
▷ Protected methods38.33%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin