84% simple-paginated-posts

Code Review | Simple Paginated Posts

WordPress plugin Simple Paginated Posts scored84%from 54 tests.

About plugin

  • Plugin page: simple-paginated-...
  • Plugin version: 0.1.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: Oct 6, 2020
  • Number of updates: 31
  • Update frequency: every 93.3 days
  • Top authors: tlamedia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /6,262 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.02MB] [CPU: ▼6.79ms] Passed 4 tests

Analyzing server-side resources used by Simple Paginated Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.56 ▼3.83
Dashboard /wp-admin3.33 ▲0.0348.41 ▼3.51
Posts /wp-admin/edit.php3.45 ▲0.0946.97 ▼2.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.95 ▼17.67
Media Library /wp-admin/upload.php3.25 ▲0.0238.96 ▲3.83
Paginated Posts /wp-admin/options-general.php?page=simple-paginated-posts3.2533.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Paginated Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.55 ▼0.741.94 ▲0.0444.44 ▼0.81
Dashboard /wp-admin2,225 ▲255.84 ▼0.19102.00 ▼4.5844.39 ▼5.27
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0236.76 ▼3.0334.76 ▲1.53
Add New Post /wp-admin/post-new.php1,529 ▼217.42 ▼5.68670.10 ▲63.1055.12 ▲1.80
Media Library /wp-admin/upload.php1,401 ▼24.18 ▼0.01103.99 ▲2.2846.72 ▲2.12
Paginated Posts /wp-admin/options-general.php?page=simple-paginated-posts9702.0624.1831.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-paginated-posts/includes/page-sidebar.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-paginated-posts/includes/spp-template.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: post pagination, navigation, page pagination, pagination

simple-paginated-posts/simple-paginated-posts.php Passed 13 tests

The main file in "Simple Paginated Posts" v. 0.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Generate table of contents for paginated posts

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
There were no executable files found in this plugin590 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7150221470
PO File1272977
CSS10343

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity25.67
▷ Minimum class complexity8.00
▷ Maximum class complexity53.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
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
includes/css/author-logo.png2.31KB1.52KB▼ 34.12%