Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.40MB] [CPU: ▼2.99ms] Passed 4 tests
An overview of server-side resources used by Archive Posts Sort Customize
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 42.44 ▼2.58 |
Dashboard /wp-admin | 3.74 ▲0.43 | 49.75 ▼1.23 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 52.80 ▼0.08 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.44 | 94.52 ▼8.06 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 45.65 ▲8.19 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Archive Posts Sort Customize
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲34 | 14.69 ▲0.33 | 1.69 ▼0.15 | 46.07 ▲4.25 |
Dashboard /wp-admin | 2,211 ▲34 | 5.62 ▲0.04 | 90.72 ▼2.94 | 38.78 ▼5.44 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▲0.01 | 36.67 ▼0.72 | 33.64 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.35 ▲0.48 | 667.33 ▲26.65 | 58.18 ▲8.58 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.18 ▼0.02 | 96.63 ▼6.43 | 41.96 ▼4.56 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to get property 'main_slug' of non-object in wp-content/plugins/archive-posts-sort-customize/admin/view/home.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'APSC_Model_Archive' not found in wp-content/plugins/archive-posts-sort-customize/model/home.php:5
- > PHP Notice
Undefined variable: APSC in wp-content/plugins/archive-posts-sort-customize/admin/view/search.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/archive-posts-sort-customize/admin/view/home.php:3
- > PHP Notice
Trying to get property 'main_slug' of non-object in wp-content/plugins/archive-posts-sort-customize/admin/view/elements/information.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'APSC_Model_Archive' not found in wp-content/plugins/archive-posts-sort-customize/model/search.php:5
- > PHP Fatal error
Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/archive-posts-sort-customize/controller/debug-bar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/archive-posts-sort-customize/front/master.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/archive-posts-sort-customize/core/init.php:15
- > PHP Fatal error
Uncaught Error: Class 'APSC_Model_Home' not found in wp-content/plugins/archive-posts-sort-customize/admin/manager-archive-tab-home.php:17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Settings Interface), #2 (Support the ignore words for title order sort.), #3 (Support the custom fields order sort.), #4 (Support the individual term sort settings.)
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
archive-posts-sort-customize/archive-posts-sort-customize.php 92% from 13 tests
The main file in "Archive Posts Sort Customize" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,961 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 2,045 | 40 | 2,747 |
PO File | 1 | 64 | 107 | 149 |
CSS | 1 | 11 | 0 | 61 |
JavaScript | 2 | 1 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 3 | 11.54% |
▷ Concrete classes | 23 | 88.46% |
▷ Final classes | 23 | 100.00% |
Methods | 173 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 138 | 79.77% |
▷ Protected methods | 10 | 5.78% |
▷ Private methods | 25 | 14.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 22.57KB | 9.18KB | ▼ 59.31% |
screenshot-2.png | 24.30KB | 9.20KB | ▼ 62.15% |
screenshot-4.png | 49.99KB | 18.09KB | ▼ 63.82% |
screenshot-1.png | 46.84KB | 16.29KB | ▼ 65.22% |