83% post-paging

Code Review | Post Paging

WordPress plugin Post Paging scored83%from 54 tests.

About plugin

  • Plugin page: post-paging
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: Mar 23, 2015
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Post Paging
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.42 ▲10.12
Dashboard /wp-admin3.32 ▼0.0343.56 ▼15.45
Posts /wp-admin/edit.php3.37 ▲0.0142.93 ▲1.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.96 ▼1.52
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▲0.91
Post Paging /wp-admin/options-general.php?page=paging3.2134.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Post Paging
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6014.39 ▲0.101.79 ▲0.1843.08 ▲0.41
Dashboard /wp-admin2,219 ▲455.77 ▲0.1984.28 ▼7.4237.64 ▼4.59
Posts /wp-admin/edit.php2,123 ▲232.26 ▲0.2335.12 ▼1.6133.30 ▼2.73
Add New Post /wp-admin/post-new.php1,568 ▲3923.43 ▲0.09606.38 ▼66.8334.00 ▼21.59
Media Library /wp-admin/upload.php1,421 ▲214.37 ▲0.1596.36 ▲0.1344.86 ▼2.54
Post Paging /wp-admin/options-general.php?page=paging1,2872.3751.9827.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/post-paging/paging.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #0, #0 in post-paging/assets to your readme.txt
The official readme.txt might help

post-paging/paging.php 85% from 13 tests

Analyzing the main PHP file in "Post Paging" version 1.0
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-paging.php" instead of "paging.php")

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
There were no executable files found in this plugin302 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11710234
PO File1262668

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.44MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot2.png431.33KB142.88KB▼ 66.87%
screenshot1.png23.71KB12.70KB▼ 46.46%