84% chronological-posts

Code Review | Chronological Posts

WordPress plugin Chronological Posts scored84%from 54 tests.

About plugin

  • Plugin page: chronological-posts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2016
  • Latest release: Sep 18, 2023
  • Number of updates: 12
  • Update frequency: every 227.3 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /12,263 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Chronological Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.34 ▼2.59
Dashboard /wp-admin3.31 ▼0.0343.99 ▼16.50
Posts /wp-admin/edit.php3.36 ▲0.0147.20 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.27 ▼19.46
Media Library /wp-admin/upload.php3.23 ▲0.0033.05 ▲1.33

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Chronological Posts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.011.68 ▼0.0744.00 ▲1.92
Dashboard /wp-admin2,209 ▲215.90 ▲1.02105.90 ▼0.9144.44 ▲0.30
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0938.65 ▼1.5835.69 ▼3.59
Add New Post /wp-admin/post-new.php1,533 ▼123.25 ▲0.17672.80 ▲59.9360.54 ▲6.70
Media Library /wp-admin/upload.php1,382 ▼34.28 ▲0.0796.18 ▼2.6240.97 ▼4.60

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chronological-posts/chronological-posts.php:31

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: post order, chronological, reverse post order

chronological-posts/chronological-posts.php Passed 13 tests

The principal PHP file in "Chronological Posts" v. 1.0 is loaded by WordPress automatically on each request
127 characters long description:
Globably reverses the post order to be chronological, so that your site can display a journal or a book in chronological order.

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
Good job! No executable or dangerous file extensions detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15247

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.00
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
There are no PNG files in this plugin