84% zedna-load-more-posts

Code Review | Zedna Load more posts

WordPress plugin Zedna Load more posts scored84%from 54 tests.

About plugin

  • Plugin page: zedna-load-more-p...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2019
  • Latest release: Feb 19, 2021
  • Number of updates: 7
  • Update frequency: every 76.0 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼15.20ms] Passed 4 tests

Analyzing server-side resources used by Zedna Load more posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.28 ▼7.64
Dashboard /wp-admin3.34 ▼0.0042.03 ▼23.39
Posts /wp-admin/edit.php3.39 ▲0.0450.33 ▲6.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.83 ▼31.17
Media Library /wp-admin/upload.php3.27 ▲0.0439.05 ▲1.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zedna Load more posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18013.61 ▼0.675.37 ▲3.5337.16 ▼5.58
Dashboard /wp-admin2,218 ▲275.84 ▲0.95108.87 ▲0.9877.45 ▲39.67
Posts /wp-admin/edit.php2,110 ▲242.01 ▲0.0136.05 ▼4.5934.12 ▼4.65
Add New Post /wp-admin/post-new.php1,527 ▼1017.63 ▼0.63774.81 ▲140.1553.72 ▼4.59
Media Library /wp-admin/upload.php1,397 ▲124.19 ▼0.1396.52 ▼3.7068.29 ▲24.20

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zedna-load-more-posts/zedna-load-more-posts.php:70

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: speed, infinite loading, lazy load, bandwith, pagination...

zedna-load-more-posts/zedna-load-more-posts.php Passed 13 tests

The primary PHP file in "Zedna Load more posts" version 1.2 is used by WordPress to initiate all plugin functionality
75 characters long description:
Load more posts on the page. Wordpress must have set nice url to Post name.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin286 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11321130
JavaScript1223166
PO File1181963
CSS1131327

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/lmp-ico.png0.55KB0.58KB0.00%