74% ccs-navigation

Code Review | CCS-Navigation

WordPress plugin CCS-Navigation scored74%from 54 tests.

About plugin

  • Plugin page: ccs-navigation
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2012
  • Latest release: Dec 19, 2014
  • Number of updates: 16
  • Update frequency: every 52.3 days
  • Top authors: davidgregg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,850 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.70MB] [CPU: ▼44.96ms] Passed 4 tests

A check of server-side resources used by CCS-Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.188.72 ▼30.14
Dashboard /wp-admin2.30 ▼1.0011.83 ▼36.05
Posts /wp-admin/edit.php2.30 ▼1.0613.54 ▼33.77
Add New Post /wp-admin/post-new.php2.30 ▼3.5912.70 ▼79.88
Media Library /wp-admin/upload.php2.30 ▼0.9310.53 ▼23.67

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

CCS-Navigation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.451.96 ▲0.3839.74 ▼2.41
Dashboard /wp-admin2,198 ▲215.59 ▼0.0892.23 ▲1.4541.64 ▲2.24
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0341.93 ▲3.7436.39 ▲4.32
Add New Post /wp-admin/post-new.php1,526 ▼323.38 ▲0.26609.19 ▲17.3847.67 ▲0.02
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0397.69 ▼11.8043.78 ▼5.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ccs-navigation/ccs-navigation.php:75

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === ccs-navigation === )
Please take inspiration from this readme.txt

ccs-navigation/ccs-navigation.php Passed 13 tests

This is the main PHP file of "CCS-Navigation" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
A handy little plug-in for easy dynamic navigation of a hierachical site.

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
Everything looks great! No dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142241

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin