77% wp-lipsum

Code Review | WP Lipsum

WordPress plugin WP Lipsum scored77%from 54 tests.

About plugin

  • Plugin page: wp-lipsum
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-3.3.2
  • WordPress version: 6.3.1
  • First release: May 2, 2012
  • Latest release: May 7, 2012
  • Number of updates: 18
  • Update frequency: every 0.4 days
  • Top authors: dylanized (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.36ms] Passed 4 tests

Analyzing server-side resources used by WP Lipsum
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.10 ▼3.26
Dashboard /wp-admin3.31 ▼0.0354.05 ▼19.60
Posts /wp-admin/edit.php3.36 ▲0.0151.99 ▲0.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.34 ▼15.36
Media Library /wp-admin/upload.php3.24 ▲0.0142.60 ▲5.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Lipsum
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.101.65 ▼0.4144.20 ▲5.08
Dashboard /wp-admin2,198 ▲185.63 ▲0.0188.96 ▼5.2440.46 ▼1.71
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0435.39 ▼2.5732.70 ▼6.34
Add New Post /wp-admin/post-new.php1,526 ▼022.99 ▼0.07686.55 ▲33.8655.59 ▲1.71
Media Library /wp-admin/upload.php1,400 ▲64.25 ▲0.0598.60 ▼4.2545.28 ▼0.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 0% 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
Please fix the following items
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wp-lipsum/templates/ul.php
    • > /wp-content/plugins/wp-lipsum/templates/img.php
    • > /wp-content/plugins/wp-lipsum/templates/blockquote.php
    • > /wp-content/plugins/wp-lipsum/templates/caption.php
    • > /wp-content/plugins/wp-lipsum/templates/table.php
    • > /wp-content/plugins/wp-lipsum/templates/code.php
    • > /wp-content/plugins/wp-lipsum/templates/misc.php
    • > /wp-content/plugins/wp-lipsum/templates/gallery_item.php
    • > /wp-content/plugins/wp-lipsum/templates/p.php
    • > /wp-content/plugins/wp-lipsum/templates/ol.php
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function display_lipsum_template() in wp-content/plugins/wp-lipsum/templates/aux.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_author_posts_link() in wp-content/plugins/wp-lipsum/templates/single.php:5
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/wp-lipsum/templates/gallery_item.php on line 2
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/wp-lipsum/templates/gallery_item.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_author_posts_link() in wp-content/plugins/wp-lipsum/templates/headline_teaser.php:5
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/wp-lipsum/templates/img.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function display_lipsum_template() in wp-content/plugins/wp-lipsum/templates/portfolio.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function display_lipsum_template() in wp-content/plugins/wp-lipsum/templates/long_headers.php:3
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/wp-lipsum/templates/caption.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-lipsum/wp_lipsum.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The "basic" template), #2 (The "aux" template), #3 (The "blog" template)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-lipsum === )
You can take inspiration from this readme.txt

wp-lipsum/wp_lipsum.php 92% from 13 tests

"WP Lipsum" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-lipsum.php" instead of "wp_lipsum.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin248 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP2610320248

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.56MB with 0.28MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png285.77KB143.75KB▼ 49.70%
screenshot-2.png133.39KB66.26KB▼ 50.33%
screenshot-3.png150.21KB74.88KB▼ 50.15%