Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.40ms] Passed 4 tests
An overview of server-side resources used by Advanced Post Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.08 ▼2.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.94 ▼1.28 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 43.94 ▼3.77 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.67 ▼2.51 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.99 ▲1.77 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 159 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Post Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.39 ▼1.39 | 1.67 ▼0.21 | 43.11 ▼2.01 |
Dashboard /wp-admin | 2,209 ▲17 | 5.85 ▲0.88 | 101.60 ▼11.24 | 39.20 ▼1.82 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.07 | 35.12 ▼4.31 | 32.85 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.76 ▼0.42 | 653.82 ▲44.34 | 61.07 ▼4.25 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.06 | 97.23 ▲1.98 | 42.56 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/advanced-post-manager/tests/_support/IntegrationTester.php:19
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/advanced-post-manager/tests/_support/Helper/Integration.php:7
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\TestCase\\WPTestCase' not found in wp-content/plugins/advanced-post-manager/tests/integration/Tribe_FiltersTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-post-manager/tribe-apm.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/advanced-post-manager/views/edit-filters.php:5
- > PHP Fatal error
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-post-manager/tribe-apm.php 92% from 13 tests
The main PHP script in "Advanced Post Manager" version 4.5.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-post-manager.php" instead of "tribe-apm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,377 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 1,209 | 1,302 | 2,697 |
PHP | 13 | 407 | 405 | 1,931 |
CSS | 5 | 144 | 141 | 582 |
HTML | 1 | 98 | 0 | 409 |
JavaScript | 10 | 67 | 60 | 373 |
Markdown | 1 | 95 | 0 | 361 |
YAML | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 38.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 5 | 3.45% |
▷ Public methods | 101 | 69.66% |
▷ Protected methods | 38 | 26.21% |
▷ Private methods | 6 | 4.14% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 106.33KB | 30.00KB | ▼ 71.78% |
screenshot-1.png | 126.32KB | 35.75KB | ▼ 71.70% |