84% wp-admin-ajax-posts

Code Review | Wordpress Admin Ajax Posts

WordPress plugin Wordpress Admin Ajax Posts scored 84% from 54 tests.

About plugin

  • Plugin page: wp-admin-ajax-posts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Aug 18, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: pablolp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 633 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by Wordpress Admin Ajax Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.66 ▼2.49
Dashboard /wp-admin3.34 ▲0.0446.37 ▼0.46
Posts /wp-admin/edit.php3.39 ▲0.0349.30 ▼0.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.92 ▼9.31
Media Library /wp-admin/upload.php3.26 ▲0.0337.82 ▲2.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Admin Ajax Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.27 ▼1.101.55 ▼0.2343.35 ▼0.92
Dashboard /wp-admin2,242 ▲515.85 ▼0.0498.66 ▲2.1840.14 ▼2.25
Posts /wp-admin/edit.php2,125 ▲392.04 ▲0.0336.48 ▼1.4032.58 ▼1.67
Add New Post /wp-admin/post-new.php1,548 ▲3423.41 ▲5.89694.31 ▼0.5254.75 ▲2.68
Media Library /wp-admin/upload.php1,424 ▲364.22 ▼0.0293.94 ▼1.2843.96 ▼0.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-admin-ajax-posts/wp-admin-ajax-posts.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-admin-ajax-posts/inc/about-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: A description for screenshot #1 is required in wp-admin-ajax-posts/assets to your readme.txt
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

wp-admin-ajax-posts/wp-admin-ajax-posts.php Passed 13 tests

The main PHP file in "Wordpress Admin Ajax Posts" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
A plugin for fast post management on backend area. Works with all types, products included.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected579 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File87272434
PHP33939140
CSS3274
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png7.56KB3.99KB▼ 47.23%
img/logo-wm.png7.40KB4.11KB▼ 44.47%
img/mini_icon.png0.38KB0.44KB0.00%