83% acme-demo-setup

Code Review | Acme Demo Setup

WordPress plugin Acme Demo Setup scored83%from 54 tests.

About plugin

  • Plugin page: acme-demo-setup
  • Plugin version: 2.0.8
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8+
  • WordPress version: 6.3.1
  • First release: Apr 16, 2017
  • Latest release: Sep 13, 2022
  • Number of updates: 20
  • Update frequency: every 98.8 days
  • Top authors: acmethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /523,234 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: ▲1.78ms] Passed 4 tests

A check of server-side resources used by Acme Demo Setup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5844.12 ▲9.82
Dashboard /wp-admin3.90 ▲0.5952.66 ▲9.62
Posts /wp-admin/edit.php4.01 ▲0.6548.81 ▲4.59
Add New Post /wp-admin/post-new.php6.49 ▲0.5983.38 ▼14.20
Media Library /wp-admin/upload.php3.82 ▲0.5937.99 ▲7.12

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, 7 new options
New WordPress options
__acme_demo_setup_do_redirect
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Acme Demo Setup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.36 ▼0.301.72 ▲0.1744.67 ▲8.19
Dashboard /wp-admin2,211 ▲335.63 ▼0.0896.28 ▼2.4943.76 ▲1.68
Posts /wp-admin/edit.php2,116 ▲132.03 ▲0.0536.37 ▼0.1332.65 ▼1.11
Add New Post /wp-admin/post-new.php1,542 ▲523.14 ▲4.99669.97 ▲66.1253.55 ▼12.65
Media Library /wp-admin/upload.php1,416 ▲164.20 ▲0.03109.80 ▲0.1245.43 ▼3.07

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 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • __acme_demo_setup_do_redirect
    • widget_theysaidso_widget
    • can_compress_scripts

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 90% from 29 tests

readme.txt 88% 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
  • Tested up to: Version not formatted correctly
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.8
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,067 lines of code in 303 files:
LanguageFilesBlank linesComment linesLines of code
PHP91436063,696
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