83% power-abm

Code Review | Power ABM

WordPress plugin Power ABM scored83%from 54 tests.

About plugin

  • Plugin page: power-abm
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 3, 2019
  • Latest release: Jul 5, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: omertoledano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.07ms] Passed 4 tests

A check of server-side resources used by Power ABM
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.41 ▼6.17
Dashboard /wp-admin3.34 ▲0.0446.36 ▼1.12
Posts /wp-admin/edit.php3.39 ▲0.0349.05 ▲1.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.91 ▼14.07
Media Library /wp-admin/upload.php3.26 ▲0.0336.01 ▲2.94

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Power ABM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.53 ▼1.144.76 ▲2.4139.84 ▼5.23
Dashboard /wp-admin2,225 ▲375.85 ▲0.9499.91 ▼18.8440.23 ▼5.09
Posts /wp-admin/edit.php2,108 ▲192.02 ▼0.0140.70 ▲1.1335.96 ▼1.88
Add New Post /wp-admin/post-new.php1,546 ▲3223.05 ▲5.44656.28 ▼39.8459.53 ▼10.83
Media Library /wp-admin/upload.php1,398 ▲134.22 ▲0.0494.84 ▼10.7041.20 ▼3.51

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/power-abm/abm.php:70

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

power-abm/abm.php 85% from 13 tests

This is the main PHP file of "Power ABM" version 0.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("power-abm.php" instead of "abm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected159 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13124159

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin