94% admin-post-info

Code Review | Admin Post Info

WordPress plugin Admin Post Info scored 94% from 54 tests.

About plugin

  • Plugin page: admin-post-info
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 5.9.2
  • First release: Dec 26, 2018
  • Latest release: Dec 26, 2018
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: xBLADEx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 382 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Admin Post Info
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.32 ▲4.40
Dashboard /wp-admin3.43 ▲0.0234.11 ▼1.42
Posts /wp-admin/edit.php3.65 ▲0.0144.22 ▲7.17
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.91 ▼1,212.45
Media Library /wp-admin/upload.php3.30 ▲0.0122.86 ▼8.62

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Post Info
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.91 ▲0.245.96 ▲0.102.38 ▼0.53
Dashboard /wp-admin2,895 ▲346.17 ▼0.00120.37 ▼13.70158.74 ▼0.54
Posts /wp-admin/edit.php2,721 ▲273.37 ▲0.1463.74 ▼1.48143.00 ▲1.26
Add New Post /wp-admin/post-new.php1,668 ▼9218.63 ▲0.98379.46 ▼44.36162.90 ▲2.72
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.00140.96 ▼5.13191.49 ▲7.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-post-info/admin-post-info.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (N/A)
The official readme.txt might help

admin-post-info/admin-post-info.php 92% from 13 tests

The principal PHP file in "Admin Post Info" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin