84% mt8-sort-user-list-by-post-counts

Code Review | Mt8 Sort User List By Post Counts

WordPress plugin Mt8 Sort User List By Post Counts scored84%from 54 tests.

About plugin

  • Plugin page: mt8-sort-user-lis...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mt8.biz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,104 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.00MB] [CPU: ▼9.07ms] Passed 4 tests

Analyzing server-side resources used by Mt8 Sort User List By Post Counts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.89 ▼6.09
Dashboard /wp-admin3.31 ▼0.0343.99 ▼13.74
Posts /wp-admin/edit.php3.36 ▲0.0151.00 ▲2.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.35 ▼17.88
Media Library /wp-admin/upload.php3.24 ▲0.0133.82 ▲1.45

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Mt8 Sort User List By Post Counts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.36 ▼1.201.63 ▼0.0644.62 ▲2.64
Dashboard /wp-admin2,206 ▲215.90 ▲0.0495.49 ▼9.6537.50 ▼6.17
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0439.77 ▼0.6336.51 ▲1.44
Add New Post /wp-admin/post-new.php1,543 ▲2318.24 ▼5.05593.46 ▼73.6759.50 ▲2.68
Media Library /wp-admin/upload.php1,385 ▼34.14 ▼0.2997.18 ▼13.4344.38 ▼1.11

Uninstaller [IO: ▲0.00MB] [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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mt8-sort-user-list-by-post-counts/mt8-sort-user-list-by-post-counts.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Latest information) image not found
The official readme.txt might help

mt8-sort-user-list-by-post-counts/mt8-sort-user-list-by-post-counts.php Passed 13 tests

The main PHP file in "Mt8 Sort User List By Post Counts" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
Sort user-list by post counts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File15723
PHP1151021

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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