84% list-posts-alphabetically

Code Review | List Posts Alphabetically

WordPress plugin List Posts Alphabetically scored 84% from 54 tests.

About plugin

  • Plugin page: list-posts-alphab...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2017
  • Latest release: Sep 7, 2017
  • Number of updates: 5
  • Update frequency: every 18.2 days
  • Top authors: altpress (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

40+ active / 1,548 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.83ms] Passed 4 tests

Analyzing server-side resources used by List Posts Alphabetically
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0243.65 ▼0.43
Dashboard /wp-admin3.32 ▲0.0180.55 ▲21.98
Posts /wp-admin/edit.php3.37 ▲0.0156.42 ▲3.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.68 ▼2.52
Media Library /wp-admin/upload.php3.24 ▲0.0137.39 ▲2.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for List Posts Alphabetically
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1113.22 ▼1.521.65 ▼0.6141.56 ▼6.70
Dashboard /wp-admin2,206 ▲34.86 ▼0.98110.10 ▼5.8340.18 ▼3.90
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.73 ▲4.9435.13 ▼0.28
Add New Post /wp-admin/post-new.php1,514 ▼023.56 ▲5.95625.31 ▼55.6548.93 ▼11.36
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0495.76 ▼14.7144.73 ▼1.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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)
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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/list-posts-alphabetically/list-posts-alphabetically.php:93

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: a-z, list posts alphabetically, list posts by category, list a-z

list-posts-alphabetically/list-posts-alphabetically.php Passed 13 tests

"List Posts Alphabetically" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
List posts or pages alphabetically by category.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291056

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected