89% accountable-press-toolkit

Code Review | Accountable Press Toolkit

WordPress plugin Accountable Press Toolkit scored 89% from 54 tests.

About plugin

  • Plugin page: accountable-press...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 5.9.2
  • First release: Feb 19, 2021
  • Latest release: Feb 20, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: accountablepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 165 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼294.51ms] Passed 4 tests

A check of server-side resources used by Accountable Press Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0259.04 ▲3.12
Dashboard /wp-admin3.42 ▲0.0237.18 ▲0.09
Posts /wp-admin/edit.php3.66 ▲0.0242.14 ▲2.03
Add New Post /wp-admin/post-new.php6.89 ▼0.0794.88 ▼1,183.28
Media Library /wp-admin/upload.php3.31 ▲0.0130.40 ▲3.40
Accountable Press /wp-admin/options-general.php?page=accountable-press-settings3.3325.68

Server storage [IO: ▲0.14MB] [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, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Accountable Press Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.70 ▼0.215.87 ▼0.282.85 ▼0.07
Dashboard /wp-admin2,883 ▲326.11 ▼0.09115.84 ▼20.63158.12 ▼1.37
Posts /wp-admin/edit.php2,696 ▲23.25 ▲0.0263.03 ▲1.10144.49 ▲6.56
Add New Post /wp-admin/post-new.php1,776 ▲8022.18 ▲1.13435.95 ▲36.60157.19 ▼2.95
Media Library /wp-admin/upload.php1,703 ▲25.52 ▲0.03139.21 ▼4.38186.72 ▼4.29
Accountable Press /wp-admin/options-general.php?page=accountable-press-settings1,2592.3854.02153.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_accountable_press

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: news publishing, accountable press, certified

accountable-press-toolkit/accountable-press.php 85% from 13 tests

The entry point to "Accountable Press Toolkit" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("accountable-press-toolkit.php" instead of "accountable-press.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected256 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin