10% simple-load-more

Code Review | Simple Load More

WordPress plugin Simple Load More scored10%from 54 tests.

About plugin

  • Plugin page: simple-load-more
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2017
  • Latest release: Sep 2, 2019
  • Number of updates: 5
  • Update frequency: every 190.0 days
  • Top authors: webgensis (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,531 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/simple-load-more/includes/class-simple-load-more.php+86
    Constant SCRIPT_DEBUG already defined

Server metrics [RAM: ▼1.74MB] [CPU: ▼58.17ms] Passed 4 tests

Analyzing server-side resources used by Simple Load More
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.215.54 ▼34.65
Dashboard /wp-admin2.28 ▼1.037.05 ▼47.36
Posts /wp-admin/edit.php2.28 ▼1.086.74 ▼46.30
Add New Post /wp-admin/post-new.php2.28 ▼3.618.38 ▼104.35
Media Library /wp-admin/upload.php2.28 ▼0.968.64 ▼27.89
Simple Load More /wp-admin/options-general.php?page=simple_load_more_settings2.288.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
simple_load_more_version
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Load More
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12313.45 ▼1.088.49 ▲6.8842.84 ▲3.13
Dashboard /wp-admin2,201 ▲245.52 ▼0.1784.81 ▼8.0540.03 ▼4.69
Posts /wp-admin/edit.php2,106 ▲92.02 ▲0.0535.27 ▼3.0636.85 ▲3.41
Add New Post /wp-admin/post-new.php1,531 ▼623.12 ▲5.04678.90 ▲31.9254.72 ▼14.57
Media Library /wp-admin/upload.php1,406 ▲94.12 ▼0.11105.19 ▲1.9244.59 ▼0.53
Simple Load More /wp-admin/options-general.php?page=simple_load_more_settings1,3983.5055.0027.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/simple-load-more/includes/class-simple-load-more.php+86
    Constant SCRIPT_DEBUG already defined
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • simple_load_more_version

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=simple_load_more_settings
    • > Notice in wp-content/plugins/simple-load-more/includes/class-simple-load-more.php+86
    Constant SCRIPT_DEBUG already defined

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Add a load more button to your posts loop.), #2 (Choose from 9 different animated loading icons.)
You can look at the official readme.txt

simple-load-more/post-load-more.php 85% from 13 tests

The main file in "Simple Load More" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-load-more.php" instead of "post-load-more.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7.0" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,159 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP62363461,031
JavaScript433693
CSS26035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity36.00
▷ Minimum class complexity23.00
▷ Maximum class complexity61.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods3088.24%
▷ Protected methods00.00%
▷ Private methods411.76%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png108.70KB32.64KB▼ 69.97%
assets/screenshot-1.png108.70KB32.64KB▼ 69.97%
assets/screenshot-2.png71.87KB22.88KB▼ 68.17%
screenshot-2.png71.87KB22.88KB▼ 68.17%