84% orbisius-blank-slate

Code Review | Orbisius Blank Slate

WordPress plugin Orbisius Blank Slate scored84%from 54 tests.

About plugin

  • Plugin page: orbisius-blank-slate
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5.1
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: May 11, 2013
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,329 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.22ms] Passed 4 tests

This is a short check of server-side resources used by Orbisius Blank Slate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.65 ▼4.44
Dashboard /wp-admin3.35 ▼0.0046.53 ▼12.22
Posts /wp-admin/edit.php3.40 ▲0.0443.76 ▼6.29
Add New Post /wp-admin/post-new.php5.93 ▲0.04102.83 ▲5.50
Media Library /wp-admin/upload.php3.27 ▲0.0434.28 ▲2.08
Orbisius Blank Slate /wp-admin/tools.php?page=orbisius-blank-slate/orbisius-blank-slate.php3.2631.96

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Orbisius Blank Slate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.53 ▲0.131.80 ▲0.1544.91 ▼4.15
Dashboard /wp-admin2,212 ▲214.84 ▼0.25102.32 ▲0.3643.65 ▼0.84
Posts /wp-admin/edit.php2,095 ▲32.05 ▼0.1233.91 ▼8.2934.42 ▼5.02
Add New Post /wp-admin/post-new.php1,533 ▲1923.16 ▲5.63707.95 ▲87.9662.66 ▲12.97
Media Library /wp-admin/upload.php1,394 ▲94.21 ▲0.0196.92 ▼5.7441.67 ▼3.89
Orbisius Blank Slate /wp-admin/tools.php?page=orbisius-blank-slate/orbisius-blank-slate.php9192.0224.7727.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-blank-slate/orbisius-blank-slate.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Orbisius Blank Slate in Admin > Plugins), #2 (Initial Plugin page), #3 (About to delete content. Showing confirmation popup/alert message.), #4 (Result messages after the deletion)
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt might help

orbisius-blank-slate/orbisius-blank-slate.php Passed 13 tests

The primary PHP file in "Orbisius Blank Slate" version 1.0.1 is used by WordPress to initiate all plugin functionality
121 characters long description:
This plugin allows you to delete content from your WordPress site/blog. To use it go to Tools → Orbisius Blank Slate

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 detected291 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15968226
CSS113365

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity3.00
▷ Maximum class complexity9.00
Average method complexity4.33
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.36MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png56.66KB26.83KB▼ 52.64%
screenshot-3.png184.94KB62.41KB▼ 66.25%
i/guNzr.qr.16.png0.39KB0.41KB0.00%
i/guNzr.qr.2.png0.23KB0.23KB0.43%
screenshot-4.png64.37KB35.01KB▼ 45.62%