84% navception

Code Review | Navception

WordPress plugin Navception scored84%from 54 tests.

About plugin

  • Plugin page: navception
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: Oct 22, 2014
  • Number of updates: 5
  • Update frequency: every 96.2 days
  • Top authors: Faison (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

400+ active /9,453 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Navception
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.29 ▼3.45
Dashboard /wp-admin3.32 ▲0.0144.88 ▼5.70
Posts /wp-admin/edit.php3.37 ▲0.0147.57 ▲0.04
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.34 ▲4.31
Media Library /wp-admin/upload.php3.24 ▲0.0134.05 ▲1.39

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Navception
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.38 ▼1.001.73 ▼0.0441.89 ▼3.24
Dashboard /wp-admin2,206 ▲214.83 ▼0.99110.17 ▼6.1744.54 ▼0.24
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0039.06 ▲3.2135.19 ▲0.63
Add New Post /wp-admin/post-new.php1,542 ▲918.17 ▼4.97617.36 ▼45.6459.23 ▼1.67
Media Library /wp-admin/upload.php1,382 ▼94.21 ▼0.0796.72 ▼7.8441.72 ▼4.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/navception/navception.php:73

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

navception/navception.php Passed 13 tests

"Navception" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Embed WordPress Menus inside of other WordPress Menus!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected212 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152132187
JavaScript17025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected