84% wpxp-clean-navigation-links

Code Review | WPXP Clean Navigation Links

WordPress plugin WPXP Clean Navigation Links scored84%from 54 tests.

About plugin

  • Plugin page: wpxp-clean-naviga...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Feb 20, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: manjonka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /609 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.00MB] [CPU: ▼9.92ms] Passed 4 tests

Server-side resources used by WPXP Clean Navigation Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.17 ▼6.52
Dashboard /wp-admin3.32 ▼0.0345.24 ▼14.89
Posts /wp-admin/edit.php3.37 ▲0.0145.55 ▼1.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.85 ▼16.59
Media Library /wp-admin/upload.php3.24 ▲0.0132.81 ▼1.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WPXP Clean Navigation Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.22 ▼1.162.05 ▲0.1741.68 ▲2.64
Dashboard /wp-admin2,209 ▲215.91 ▲1.00107.01 ▼4.3042.31 ▼3.70
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0539.80 ▼3.0536.13 ▲0.41
Add New Post /wp-admin/post-new.php1,537 ▼123.03 ▲0.01599.55 ▼3.5355.20 ▼13.81
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.07100.74 ▼3.3442.68 ▲0.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpxp-clean-navigation-links/wpxp-clean-navigation-links.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: cleaner, navigation, links, menu

wpxp-clean-navigation-links/wpxp-clean-navigation-links.php 92% from 13 tests

The main file in "WPXP Clean Navigation Links" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 326 characters long)

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
Success! There were no dangerous files found in this plugin36 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2153936

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin