84% any-ipsum

Code Review | Any Ipsum

WordPress plugin Any Ipsum scored84%from 54 tests.

About plugin

  • Plugin page: any-ipsum
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 14, 2014
  • Latest release: Sep 30, 2020
  • Number of updates: 45
  • Update frequency: every 49.1 days
  • Top authors: GunGeekATX (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,273 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.24ms] Passed 4 tests

Server-side resources used by Any Ipsum
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.92 ▼3.11
Dashboard /wp-admin3.36 ▲0.0653.08 ▼0.47
Posts /wp-admin/edit.php3.48 ▲0.1255.03 ▲3.30
Add New Post /wp-admin/post-new.php5.94 ▲0.06117.07 ▲15.93
Media Library /wp-admin/upload.php3.29 ▲0.0641.13 ▲9.23
Any Ipsum /wp-admin/options-general.php?page=anyipsum-settings3.2533.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Any Ipsum
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.78 ▼0.601.82 ▲0.0242.72 ▼1.50
Dashboard /wp-admin2,210 ▲224.87 ▼0.03114.02 ▲6.2741.26 ▲0.19
Posts /wp-admin/edit.php2,090 ▼21.99 ▲0.0033.04 ▼6.0434.67 ▲3.64
Add New Post /wp-admin/post-new.php1,539 ▲623.01 ▼0.11686.99 ▲21.1558.61 ▼2.14
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0296.29 ▼12.3442.94 ▼6.03
Any Ipsum /wp-admin/options-general.php?page=anyipsum-settings8602.1824.8125.77

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 items
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/any-ipsum/uninstall.php
    • > /wp-content/plugins/any-ipsum/lib/class-WPAnyIpsumCore.php
    • > /wp-content/plugins/any-ipsum/lib/admin-help.php
    • > /wp-content/plugins/any-ipsum/wp-anyipsum.php
    • > /wp-content/plugins/any-ipsum/lib/class-WPAnyIpsumSettings.php
    • > /wp-content/plugins/any-ipsum/lib/class-WPAnyIpsumAPI.php
    • > /wp-content/plugins/any-ipsum/lib/class-WPAnyIpsumWPCLI.php
    • > /wp-content/plugins/any-ipsum/lib/class-WPAnyIpsumForm.php
    • > /wp-content/plugins/any-ipsum/lib/class-WPAnyIpsumOembed.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: ipsum, content

any-ipsum/wp-anyipsum.php 92% from 13 tests

"Any Ipsum" version 1.9.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("any-ipsum.php" instead of "wp-anyipsum.php")

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
No dangerous file extensions were detected945 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11375141945

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.86
▷ Minimum class complexity6.00
▷ Maximum class complexity33.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods53
▷ Static methods11.89%
▷ Public methods3566.04%
▷ Protected methods00.00%
▷ Private methods1833.96%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin