84% invisible

Code Review | Invisible

WordPress plugin Invisible scored 84% from 54 tests.

About plugin

  • Plugin page: invisible
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Feb 3, 2014
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: nemooon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.82ms] Passed 4 tests

Server-side resources used by Invisible
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.34 ▲0.31
Dashboard /wp-admin3.35 ▲0.0451.56 ▼4.22
Posts /wp-admin/edit.php3.40 ▲0.0450.03 ▼3.00
Add New Post /wp-admin/post-new.php5.93 ▲0.04143.67 ▲47.83
Media Library /wp-admin/upload.php3.27 ▲0.0437.69 ▼4.36

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Invisible
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3613.21 ▼1.202.20 ▲0.3044.62 ▼3.95
Dashboard /wp-admin2,206 ▼05.85 ▲0.98107.29 ▼5.8746.23 ▲2.52
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0139.64 ▲0.6534.86 ▼10.57
Add New Post /wp-admin/post-new.php1,528 ▲1423.32 ▲5.76633.98 ▼63.8756.79 ▲1.97
Media Library /wp-admin/upload.php1,388 ▼04.28 ▲0.0695.03 ▼13.2242.97 ▼2.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/invisible/invisible.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Enable protection at media library.) image missing
You can look at the official readme.txt

invisible/invisible.php Passed 13 tests

The main file in "Invisible" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Protect private post attachment file.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected152 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15422127
PO File14425

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png107.03KB46.05KB▼ 56.97%