99% sequential-posts-numbering

Code Review | Sequential posts numbering

WordPress plugin Sequential posts numbering scored 99% from 54 tests.

About plugin

  • Plugin page: sequential-posts-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0.3
  • WordPress version: 5.8.1
  • First release: Apr 9, 2018
  • Latest release: Feb 12, 2019
  • Number of updates: 11
  • Update frequency: every 28.2 days
  • Top authors: marushu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 813 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

Server-side resources used by Sequential posts numbering
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0141.45 ▲5.18
Dashboard /wp-admin3.06 ▲0.0147.12 ▼4.12
Posts /wp-admin/edit.php3.11 ▲0.0151.13 ▲12.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.64 ▼573.54
Media Library /wp-admin/upload.php3.01 ▲0.0035.54 ▼4.39

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Sequential posts numbering: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.27 ▲0.789.56 ▲0.8549.38 ▼2.49
Dashboard /wp-admin2,973 ▲395.90 ▼0.02149.54 ▼8.08121.23 ▲0.56
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0071.18 ▼1.2491.85 ▼1.25
Add New Post /wp-admin/post-new.php1,498 ▼17218.81 ▼0.35374.12 ▼25.32115.95 ▼1.40
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.02160.91 ▲2.88120.51 ▼6.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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 require attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

sequential-posts-numbering/sequential-posts-numbering.php 77% from 13 tests

"Sequential posts numbering" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153222

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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
PNG images were not found in this plugin