84% admin-posts-manager

Code Review | Admin Posts Manager - Posts manager for your posts

WordPress plugin Admin Posts Manager - Posts manager for your posts scored84%from 54 tests.

About plugin

  • Plugin page: admin-posts-manager
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2022
  • Latest release: Jul 22, 2022
  • Number of updates: 4
  • Update frequency: every 7.5 days
  • Top authors: theconcept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /281 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.22MB] [CPU: ▼3.94ms] Passed 4 tests

Analyzing server-side resources used by Admin Posts Manager - Posts manager for your posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2040.36 ▼1.16
Dashboard /wp-admin3.58 ▲0.2449.59 ▼14.32
Posts /wp-admin/edit.php3.63 ▲0.2750.92 ▲5.19
Add New Post /wp-admin/post-new.php6.11 ▲0.2285.95 ▼5.47
Media Library /wp-admin/upload.php3.45 ▲0.2238.92 ▲6.80

Server storage [IO: ▲0.63MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Posts Manager - Posts manager for your posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.44 ▲0.391.88 ▼0.0642.64 ▼0.39
Dashboard /wp-admin2,218 ▲334.85 ▼0.97104.68 ▼2.2138.91 ▼7.48
Posts /wp-admin/edit.php2,104 ▲152.01 ▼0.0338.59 ▲3.6734.39 ▼1.79
Add New Post /wp-admin/post-new.php1,552 ▲1918.46 ▼4.58589.76 ▼46.9158.79 ▲3.08
Media Library /wp-admin/upload.php1,400 ▲124.19 ▼0.0796.13 ▼9.4142.27 ▼5.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'APM\\Core\\CMS' not found in wp-content/plugins/admin-posts-manager/includes/init.php:24

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: posts manager, admin posts manager, advanced posts manager, posts

admin-posts-manager/admin-posts-manager.php 85% from 13 tests

The primary PHP file in "Admin Posts Manager - Posts manager for your posts" version 0.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,901 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP163094491,325
CSS11160571
JSON1005
JavaScript1010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity20.22
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods78
▷ Static methods3342.31%
▷ Public methods7089.74%
▷ Protected methods00.00%
▷ Private methods810.26%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants8
▷ Global constants8100.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
There are no PNG files in this plugin