84% auto-numbering-post

Code Review | Auto Numbering Post

WordPress plugin Auto Numbering Post scored84%from 54 tests.

About plugin

  • Plugin page: auto-numbering-post
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: Dec 26, 2014
  • Number of updates: 15
  • Update frequency: every 47.1 days
  • Top authors: narin1975 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,598 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Auto Numbering Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.58 ▼1.57
Dashboard /wp-admin3.31 ▲0.0044.53 ▼5.13
Posts /wp-admin/edit.php3.36 ▲0.0045.50 ▼7.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.55 ▼7.75
Media Library /wp-admin/upload.php3.23 ▲0.0038.65 ▲3.17

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Auto Numbering Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.155.03 ▲3.2942.05 ▼0.92
Dashboard /wp-admin2,206 ▲175.91 ▲0.98106.32 ▼12.2937.39 ▼10.88
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0240.80 ▲2.3034.82 ▼0.66
Add New Post /wp-admin/post-new.php1,538 ▲1923.08 ▲0.01669.13 ▼18.5854.00 ▼0.92
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.00107.42 ▲9.2847.05 ▲5.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-numbering-post/auto-numbering-post.php:21

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: publish date, number, title, posts, order...

auto-numbering-post/auto-numbering-post.php Passed 13 tests

The main file in "Auto Numbering Post" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
Automatically numbering all published posts based on the publish date and display the number in front of all published post titles.

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
Everything looks great! No dangerous files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101519

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin