89% accountable-press-toolkit

Code Review | Accountable Press Toolkit

WordPress plugin Accountable Press Toolkit scored89%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: 6.3.1
  • 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 /385 total downloads

Benchmarks

Plugin footprint 83% from 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.04MB] [CPU: ▼7.18ms] Passed 4 tests

An overview of server-side resources used by Accountable Press Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.51 ▼4.26
Dashboard /wp-admin3.35 ▲0.0548.32 ▼5.39
Posts /wp-admin/edit.php3.40 ▲0.0446.18 ▼2.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.62 ▼16.85
Media Library /wp-admin/upload.php3.27 ▲0.0435.38 ▼0.43
Accountable Press /wp-admin/options-general.php?page=accountable-press-settings3.2536.14

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_accountable_press
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Accountable Press Toolkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▼0.111.92 ▼0.0344.66 ▼3.19
Dashboard /wp-admin2,202 ▲285.63 ▲0.0890.97 ▼7.5339.09 ▼2.47
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0140.26 ▼0.4130.99 ▼7.32
Add New Post /wp-admin/post-new.php1,531 ▼523.09 ▲0.05724.01 ▲51.7966.26 ▼0.90
Media Library /wp-admin/upload.php1,404 ▲44.28 ▲0.09104.38 ▼7.6944.16 ▼3.54
Accountable Press /wp-admin/options-general.php?page=accountable-press-settings9881.9924.7833.35

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_accountable_press
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: accountable press, certified, news publishing

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

The main PHP script in "Accountable Press Toolkit" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accountable-press-toolkit.php" instead of "accountable-press.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected256 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP410199250
HTML1025
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ 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
No PNG files were detected