94% voce-cached-nav

Code Review | Voce Cached Nav

WordPress plugin Voce Cached Nav scored 94% from 53 tests.

About plugin

  • Plugin page: voce-cached-nav
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 5.8.1
  • First release: Nov 29, 2012
  • Latest release: Jun 12, 2015
  • Number of updates: 16
  • Update frequency: every 57.8 days
  • Top authors: markparolisi (37.5%)smccafferty (31.25%)csloisel (31.25%)kevinlangleyjr (18.75%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 2,806 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼296.78ms] Passed 4 tests

Server-side resources used by Voce Cached Nav
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0432.11 ▼2.81
Dashboard /wp-admin3.10 ▲0.0445.74 ▼1.87
Posts /wp-admin/edit.php3.15 ▲0.0445.49 ▲4.12
Add New Post /wp-admin/post-new.php5.46 ▲0.0388.84 ▼1,175.17
Media Library /wp-admin/upload.php3.04 ▲0.0332.29 ▼7.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Voce Cached Nav
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6815.86 ▲0.308.74 ▼1.7050.44 ▲2.21
Dashboard /wp-admin2,931 ▲785.93 ▲0.09130.66 ▼4.19109.17 ▲4.50
Posts /wp-admin/edit.php2,706 ▼02.69 ▲0.0061.88 ▼3.0779.49 ▼7.29
Add New Post /wp-admin/post-new.php1,876 ▲22319.08 ▲0.28357.30 ▼1.66104.41 ▼5.03
Media Library /wp-admin/upload.php1,772 ▼35.00 ▼0.01149.67 ▲10.65110.54 ▼11.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voce-cached-nav/voce-cached-nav.php:29

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: cache, nav, menus, performance, caching

voce-cached-nav/voce-cached-nav.php Passed 13 tests

The main file in "Voce Cached Nav" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
Serve cached WordPress Navigation Objects.

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

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity5.73
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected