83% archive-post-order-plus

Code Review | Archive Post Order Plus

WordPress plugin Archive Post Order Plus scored 83% from 54 tests.

About plugin

  • Plugin page: archive-post-orde...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: Sep 12, 2023
  • Number of updates: 57
  • Update frequency: every 14.3 days
  • Top authors: nbk45 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▲2.21ms] Passed 4 tests

Server-side resources used by Archive Post Order Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2638.62 ▼1.43
Dashboard /wp-admin3.57 ▲0.2751.76 ▲4.94
Posts /wp-admin/edit.php3.62 ▲0.2653.49 ▲2.99
Add New Post /wp-admin/post-new.php6.11 ▲0.22103.51 ▲7.43
Media Library /wp-admin/upload.php3.43 ▲0.2035.33 ▲2.32
Display number / target setting /wp-admin/admin.php?page=apop_post_sort3.4336.13
Sorting /wp-admin/admin.php?page=apop_post_sort_setting3.4439.39

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Archive Post Order Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.18 ▼1.111.71 ▼0.0136.39 ▼14.60
Dashboard /wp-admin2,244 ▲564.89 ▼0.00113.11 ▲1.0840.35 ▼1.12
Posts /wp-admin/edit.php2,131 ▲392.36 ▲0.3340.14 ▼0.4536.49 ▲0.04
Add New Post /wp-admin/post-new.php6,486 ▲4,97223.25 ▲5.74833.61 ▲180.1353.54 ▼8.50
Media Library /wp-admin/upload.php1,430 ▲424.39 ▲0.15101.44 ▲0.5642.32 ▼4.67
Display number / target setting /wp-admin/admin.php?page=apop_post_sort9722.1831.0338.41
Sorting /wp-admin/admin.php?page=apop_post_sort_setting1,9242.5862.4939.14

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/archive-post-order-plus/template/success.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'APOP_UI' not found in wp-content/plugins/archive-post-order-plus/template/order.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/archive-post-order-plus/archive-post-order-plus.php:27
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/archive-post-order-plus/template/setting_post_custom_field.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/archive-post-order-plus/template/setting.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: The official readme.txt is a good inspiration

archive-post-order-plus/archive-post-order-plus.php 85% from 13 tests

The main file in "Archive Post Order Plus" v. 1.2.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: Please use dashes and lowercase characters for text domains
  • Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,596 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP192171351,721
CSS2121491,530
JavaScript23110223
PO File15173122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.25
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits5
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods75
▷ Static methods4560.00%
▷ Public methods3141.33%
▷ Protected methods00.00%
▷ Private methods4458.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin