82% load-more-posts

Code Review | Load More Posts

WordPress plugin Load More Posts scored82%from 54 tests.

About plugin

  • Plugin page: load-more-posts
  • Plugin version: 1.3.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2021
  • Latest release: Dec 1, 2023
  • Number of updates: 55
  • Update frequency: every 18.5 days
  • Top authors: rajeevglocify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,873 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.53ms] Passed 4 tests

An overview of server-side resources used by Load More Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.65 ▼4.63
Dashboard /wp-admin3.32 ▲0.0145.47 ▼4.26
Posts /wp-admin/edit.php3.37 ▲0.0145.92 ▼2.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.13 ▼2.40
Media Library /wp-admin/upload.php3.24 ▲0.0131.99 ▼2.83

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Load More Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15513.48 ▼0.767.94 ▲6.0338.04 ▼6.43
Dashboard /wp-admin2,214 ▲375.62 ▼0.0495.06 ▼3.7542.10 ▼0.22
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0538.83 ▼0.7934.64 ▼3.67
Add New Post /wp-admin/post-new.php1,548 ▲2225.06 ▲1.79590.88 ▼32.5257.82 ▲4.46
Media Library /wp-admin/upload.php1,416 ▲134.22 ▲0.0099.40 ▲2.4341.57 ▲0.83

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/load-more-posts/inc/setting-form.php:30

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 76% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.) image not found
  • Screenshots: These screenshots need descriptions #3, #4 in load-more-posts/assets to your readme.txt
  • Donate link: Invalid URI ("mailto:chauhanrajeev85@gmail.com")
You can take inspiration from this readme.txt

load-more-posts/loadmorepost.php 69% from 13 tests

The main file in "Load More Posts" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6.20" instead of "5.2.4")
  • Main file name: Name the main plugin file the same as the plugin slug ("load-more-posts.php" instead of "loadmorepost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin572 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP42822374
CSS1140136
JavaScript1101160
SVG2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 2.42MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png739.19KB141.77KB▼ 80.82%
screenshot-6.png35.33KB35.66KB0.00%
icon-loadmore.png11.01KB4.30KB▼ 60.92%
screenshot-5.png106.96KB33.27KB▼ 68.89%
screenshot-9.png175.67KB190.24KB0.00%