84% simple-wp-limit-posts-automatically

Code Review | Simple WP Limit Posts Automatically

WordPress plugin Simple WP Limit Posts Automatically scored84%from 54 tests.

About plugin

  • Plugin page: simple-wp-limit-p...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2019
  • Latest release: Jul 28, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: wpdebuglog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.93ms] Passed 4 tests

Analyzing server-side resources used by Simple WP Limit Posts Automatically
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.70 ▼5.90
Dashboard /wp-admin3.35 ▲0.0451.14 ▼1.52
Posts /wp-admin/edit.php3.40 ▲0.0447.94 ▼6.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.96 ▼9.31
Media Library /wp-admin/upload.php3.27 ▲0.0439.25 ▲5.38
Limit Posts Options /wp-admin/options-general.php?page=simple-wp-limit-posts3.2442.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple WP Limit Posts Automatically
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.30 ▼0.081.94 ▲0.1442.46 ▼4.61
Dashboard /wp-admin2,202 ▲225.61 ▼0.0892.20 ▼4.2542.26 ▼1.09
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0138.40 ▲0.3335.20 ▲1.58
Add New Post /wp-admin/post-new.php1,544 ▲1323.24 ▲0.04588.76 ▼65.5853.92 ▼3.57
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.2399.81 ▼5.6943.70 ▼0.41
Limit Posts Options /wp-admin/options-general.php?page=simple-wp-limit-posts9202.0527.0133.01

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-wp-limit-posts-automatically/simple-wp-limit-posts-automatically.php:160

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: wordpress, limit, description, posts, excerpt...

simple-wp-limit-posts-automatically/simple-wp-limit-posts-automatically.php 92% from 13 tests

This is the main PHP file of "Simple WP Limit Posts Automatically" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected225 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12829225

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin