72% wpsite-limit-posts

Code Review | Limit Posts by 99 Robots

WordPress plugin Limit Posts by 99 Robots scored72%from 54 tests.

About plugin

  • Plugin page: wpsite-limit-posts
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2014
  • Latest release: Aug 5, 2022
  • Number of updates: 16
  • Update frequency: every 186.8 days
  • Top authors: 99robots (68.75%)wpsitenet (37.5%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10+ active /3,629 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.00MB] [CPU: ▼3.70ms] Passed 4 tests

Analyzing server-side resources used by Limit Posts by 99 Robots
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.95 ▼9.53
Dashboard /wp-admin3.32 ▼0.0245.83 ▼11.08
Posts /wp-admin/edit.php3.37 ▲0.0247.62 ▲3.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.52 ▲14.57
Media Library /wp-admin/upload.php3.25 ▲0.0235.82 ▲2.81
Limit Posts /wp-admin/options-general.php?page=wpsite-limit-posts-admin-menu-settings3.2630.83

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Limit Posts by 99 Robots
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▼0.241.56 ▼0.2037.39 ▼5.55
Dashboard /wp-admin2,199 ▲225.62 ▲0.0085.47 ▼3.4836.23 ▼5.35
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0342.76 ▲9.1936.62 ▲2.15
Add New Post /wp-admin/post-new.php1,532 ▼323.50 ▲5.21674.16 ▲57.7756.06 ▼12.77
Media Library /wp-admin/upload.php1,398 ▼24.21 ▲0.0399.66 ▼7.0540.35 ▼6.15
Limit Posts /wp-admin/options-general.php?page=wpsite-limit-posts-admin-menu-settings1,1272.2941.0169.66

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpsite-limit-posts/admin/footer.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-limit-posts/admin/sidebar.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-limit-posts/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-limit-posts/admin/header.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=wpsite-limit-posts-admin-menu-settings
    • > Network (severe)
    http://feeds.feedburner.com/99robots?format=sigpro - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

wpsite-limit-posts/wpsite-limit-posts.php 92% from 13 tests

Analyzing the main PHP file in "Limit Posts by 99 Robots" version 2.1.3
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin653 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6120149362
CSS36013265
JavaScript12019
Markdown1307

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.77
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions1
▷ Named functions1100.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
15 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ad-plugin-request.png14.13KB5.42KB▼ 61.62%
img/logo-only-50h.png9.93KB2.57KB▼ 74.15%
img/avatar-gray-50.png6.39KB2.24KB▼ 64.96%
img/ad-need-support.png15.68KB5.72KB▼ 63.54%
img/ad-themes.png16.03KB5.04KB▼ 68.52%