84% lifted-specials

Code Review | Lifted Specials

WordPress plugin Lifted Specials scored84%from 54 tests.

About plugin

  • Plugin page: lifted-specials
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Aug 3, 2016
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bmoredrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.17ms] Passed 4 tests

A check of server-side resources used by Lifted Specials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.52 ▼0.67
Dashboard /wp-admin3.32 ▼0.0242.79 ▼24.82
Posts /wp-admin/edit.php3.38 ▲0.0246.32 ▲1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.98 ▼4.90
Media Library /wp-admin/upload.php3.25 ▲0.0232.66 ▼2.27
Add New /wp-admin/post-new.php?post_type=specials3.3653.26
All Items /wp-admin/edit.php?post_type=specials3.2933.32

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lifted Specials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.23 ▼0.301.54 ▼0.3141.53 ▼4.67
Dashboard /wp-admin2,225 ▲515.63 ▲0.0394.70 ▲1.4237.14 ▼2.27
Posts /wp-admin/edit.php2,130 ▲271.99 ▼0.0243.26 ▲7.4435.38 ▼1.34
Add New Post /wp-admin/post-new.php1,549 ▲2323.17 ▼0.07683.90 ▲29.3658.15 ▼6.29
Media Library /wp-admin/upload.php1,427 ▲334.17 ▲0.0294.97 ▼4.1943.70 ▲3.92
Add New /wp-admin/post-new.php?post_type=specials2,2267.53184.1266.96
All Items /wp-admin/edit.php?post_type=specials1,1001.9729.9629.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lifted-specials/lib/post-type.php:56

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: specials, liftedhq

lifted-specials/lifted.php 92% from 13 tests

"Lifted Specials" version 1.0'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 ("lifted-specials.php" instead of "lifted.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected65 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP241357
Markdown1408

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected