10% global-posts-ordering

Code Review | Global Posts Ordering

WordPress plugin Global Posts Ordering scored10%from 54 tests.

About plugin

  • Plugin page: global-posts-orde...
  • Plugin version: 0.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2012
  • Latest release: May 18, 2013
  • Number of updates: 42
  • Update frequency: every 10.4 days
  • Top authors: nonverbla (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /7,668 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/global-posts-ordering/global-posts-ordering.php+33
    Methods with the same name as their class will not be constructors in a future version of PHP; global_posts_ordering has a deprecated constructor

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.87ms] Passed 4 tests

Server-side resources used by Global Posts Ordering
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.94 ▼0.64
Dashboard /wp-admin3.31 ▲0.0044.58 ▼6.45
Posts /wp-admin/edit.php3.36 ▲0.0045.65 ▼1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.34 ▼13.90
Media Library /wp-admin/upload.php3.23 ▲0.0032.11 ▼1.89

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Global Posts Ordering
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.14 ▼0.261.75 ▲0.1645.19 ▲5.51
Dashboard /wp-admin2,195 ▲185.52 ▼0.0480.06 ▼8.8136.69 ▼8.18
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.0033.48 ▼0.8036.28 ▼0.82
Add New Post /wp-admin/post-new.php1,535 ▲918.17 ▼5.59593.05 ▼72.1562.50 ▲11.51
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0394.61 ▼7.3642.47 ▼0.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Just drag the posts up and down to change their order)
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt might help

global-posts-ordering/global-posts-ordering.php Passed 13 tests

Analyzing the main PHP file in "Global Posts Ordering" version 0.9.5
82 characters long description:
Adjust the global order of posts from various post types via simple drag and drop.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected381 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13531238
CSS10087
JavaScript16556

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.50
▷ Minimum method complexity2.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon32.png2.73KB1.17KB▼ 56.98%