83% acme-demo-setup

Code Review | Acme Demo Setup

WordPress plugin Acme Demo Setup scored 83% from 54 tests.

About plugin

  • Plugin page: acme-demo-setup
  • Plugin version: 2.0.6
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 5.8.1
  • First release: Apr 16, 2017
  • Latest release: Jul 28, 2021
  • Number of updates: 18
  • Update frequency: every 86.9 days
  • Top authors: acmethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30,000+ active / 423,068 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.59MB] [CPU: ▼132.76ms] Passed 4 tests

A check of server-side resources used by Acme Demo Setup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▲0.6836.96 ▲15.78
Dashboard /wp-admin3.63 ▲0.5848.93 ▲5.71
Posts /wp-admin/edit.php3.75 ▲0.6447.90 ▲6.68
Add New Post /wp-admin/post-new.php6.00 ▲0.5796.07 ▼541.73
Media Library /wp-admin/upload.php3.58 ▲0.5737.55 ▼1.68

Server storage [IO: ▲35.83MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The filesystem usage should be lower than 25MB (currently using 35.83MB)
Filesystem: 404 new files
Database: no new tables, 1 new option
New WordPress options
__acme_demo_setup_do_redirect

Browser metrics Passed 4 tests

Checking browser requirements for Acme Demo Setup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.78 ▲0.217.64 ▼1.7051.97 ▲7.17
Dashboard /wp-admin2,987 ▲565.86 ▼0.25132.47 ▼10.40111.72 ▼7.11
Posts /wp-admin/edit.php2,760 ▲212.69 ▼0.0168.68 ▼0.3296.87 ▲0.58
Add New Post /wp-admin/post-new.php2,320 ▲44419.67 ▲0.57368.57 ▼3.31107.56 ▼9.77
Media Library /wp-admin/upload.php1,828 ▲215.03 ▲0.02143.95 ▼13.86122.08 ▼2.72

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
  • The uninstall procedure has failed, leaving 1 option in the database
    • __acme_demo_setup_do_redirect

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/acme-demo-setup/acme-demo-setup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Acme Demo Setup) image missing
You can take inspiration from this readme.txt

acme-demo-setup/acme-demo-setup.php 92% from 13 tests

Analyzing the main PHP file in "Acme Demo Setup" version 2.0.6
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin4,046 lines of code in 303 files:
LanguageFilesBlank linesComment linesLines of code
PHP91436063,675
JSON29200292
CSS15056
JavaScript15523

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.34
Average class complexity6.29
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods618.18%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin