83% revendless

Code Review | Revendless

WordPress plugin Revendless scored 83% from 54 tests.

About plugin

  • Plugin page: revendless
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 5.8.1
  • First release: Apr 13, 2015
  • Latest release: Jun 9, 2015
  • Number of updates: 23
  • Update frequency: every 2.5 days
  • Top authors: revendless.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.83MB] [CPU: ▼171.44ms] Passed 4 tests

Server-side resources used by Revendless
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.31 ▲5.55
Dashboard /wp-admin2.82 ▼0.2332.76 ▼23.77
Posts /wp-admin/edit.php2.82 ▼0.3026.81 ▼26.45
Add New Post /wp-admin/post-new.php2.82 ▼2.6122.12 ▼630.09
Media Library /wp-admin/upload.php2.82 ▼0.1824.61 ▼5.44

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Revendless
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲5916.19 ▲0.479.39 ▲0.0755.24 ▼5.44
Dashboard /wp-admin2,990 ▲535.88 ▼0.14144.49 ▼27.72122.14 ▼20.17
Posts /wp-admin/edit.php2,756 ▲172.68 ▼0.0169.81 ▼7.0395.64 ▼0.69
Add New Post /wp-admin/post-new.php1,695 ▲1218.44 ▼0.31402.82 ▲27.90112.13 ▼4.65
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.05156.21 ▼13.64119.32 ▼2.06

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5211
    add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.

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)
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/revendless/views/sdk.js.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'RevendlessSettings' not found in wp-content/plugins/revendless/admin/settings-general.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please a description for screenshot #3 in revendless/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === revendless === )
The official readme.txt is a good inspiration

revendless/revendless.php 92% from 13 tests

The entry point to "Revendless" version 0.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 478 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected337 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP596218265
CSS210061
SVG10011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.33
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods730.43%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin