83% auto-limit-posts-reloaded

Code Review | Auto Limit Posts Reloaded

WordPress plugin Auto Limit Posts Reloaded scored83%from 54 tests.

About plugin

  • Plugin page: auto-limit-posts-...
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 29, 2014
  • Latest release: May 25, 2022
  • Number of updates: 115
  • Update frequency: every 24.8 days
  • Top authors: TheFreeWindows (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /27,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.10ms] Passed 4 tests

A check of server-side resources used by Auto Limit Posts Reloaded
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.97 ▼4.20
Dashboard /wp-admin3.37 ▲0.0646.29 ▼3.78
Posts /wp-admin/edit.php3.42 ▲0.0647.08 ▲1.99
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.38 ▼18.39
Media Library /wp-admin/upload.php3.29 ▲0.0637.27 ▲2.00
Auto Limit Posts /wp-admin/options-general.php?page=auto-limit-posts-reloaded/auto-limit-posts.php3.2630.09

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 18 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
alpr_post_sharetext
can_compress_scripts
alpr_post_home
alpr_style
alpr_post_category
db_upgraded
alpr_post_linktext
alpr_post_ending
...

Browser metrics Passed 4 tests

Auto Limit Posts Reloaded: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1214.59 ▲0.061.58 ▼0.3043.71 ▼0.53
Dashboard /wp-admin2,196 ▲195.49 ▼0.1681.87 ▼6.0638.60 ▼2.02
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0333.58 ▼1.3932.61 ▲0.02
Add New Post /wp-admin/post-new.php1,531 ▼422.99 ▲4.85681.00 ▲47.1562.84 ▼10.36
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.01110.22 ▲10.8248.22 ▲6.73
Auto Limit Posts /wp-admin/options-general.php?page=auto-limit-posts-reloaded/auto-limit-posts.php1,0162.1321.9651.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 18 options in the database
    • alpr_post_search
    • theysaidso_admin_options
    • alpr_post_ending
    • alpr_post_home
    • alpr_share
    • db_upgraded
    • alpr_post_letters
    • widget_recent-posts
    • alpr_post_wordcut
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/auto-limit-posts-reloaded/auto-limit-posts.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Limiting posts by word, after an approximate number of letters, linking to the full text for screenshots and downloads. CSS is used to slightly increase the spacing in reference links.) image not found
You can take inspiration from this readme.txt

auto-limit-posts-reloaded/auto-limit-posts.php 85% from 13 tests

The main PHP file in "Auto Limit Posts Reloaded" ver. 2.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auto-limit-posts-reloaded.php" instead of "auto-limit-posts.php")
  • Description: The description should be shorter than 140 characters (currently 359 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin322 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19329322

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin