88% exodox

Code Review | Exodox

WordPress plugin Exodox scored 88% from 54 tests.

About plugin

  • Plugin page: exodox
  • Plugin version: 0.8.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4.1
  • WordPress version: 5.9.2
  • First release: May 27, 2020
  • Latest release: Dec 29, 2020
  • Number of updates: 12
  • Update frequency: every 18.4 days
  • Top authors: exodox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 614 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼296.00ms] Passed 4 tests

An overview of server-side resources used by Exodox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0161.01 ▲11.01
Dashboard /wp-admin3.41 ▲0.0032.60 ▼0.31
Posts /wp-admin/edit.php3.64 ▲0.0037.57 ▲1.64
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.94 ▼1,184.11
Media Library /wp-admin/upload.php3.29 ▲0.0022.89 ▼1.21
Exodox /wp-admin/options-general.php?page=exodox3.1017.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Exodox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3116.15 ▲0.365.98 ▼0.382.55 ▼0.81
Dashboard /wp-admin2,892 ▲386.06 ▼0.08113.74 ▼21.22153.14 ▼6.10
Posts /wp-admin/edit.php2,694 ▼03.25 ▲0.0160.26 ▼4.08140.12 ▼1.43
Add New Post /wp-admin/post-new.php1,661 ▼016.54 ▲0.67419.79 ▼17.00155.49 ▼4.61
Media Library /wp-admin/upload.php1,695 ▼65.53 ▼0.00144.06 ▲7.13185.24 ▲0.79
Exodox /wp-admin/options-general.php?page=exodox280.940.0316.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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/exodox/exodox.php:73

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=exodox
    • > Network (severe)
    wp-admin/options-general.php?page=exodox - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

exodox/exodox.php Passed 13 tests

Analyzing the main PHP file in "Exodox" version 0.8.3
27 characters long description:
Exodox content lock plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,383 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12114721,044
CSS1311164
PO File13337101
SVG30274

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity139.00
▷ Minimum class complexity139.00
▷ Maximum class complexity139.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods65
▷ Static methods65100.00%
▷ Public methods4670.77%
▷ Protected methods23.08%
▷ Private methods1726.15%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants22
▷ Global constants940.91%
▷ Class constants1359.09%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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