90% text-widget-fullscreen

Code Review | Text Widget Fullscreen

WordPress plugin Text Widget Fullscreen scored90%from 54 tests.

About plugin

  • Plugin page: text-widget-fulls...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-4.9
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Nov 14, 2017
  • Number of updates: 10
  • Update frequency: every 2.2 days
  • Top authors: alexvorn2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /821 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.01MB] [CPU: ▼9.14ms] Passed 4 tests

A check of server-side resources used by Text Widget Fullscreen
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.68 ▼3.48
Dashboard /wp-admin3.33 ▼0.0147.89 ▼21.78
Posts /wp-admin/edit.php3.38 ▲0.0250.38 ▲1.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.75 ▼9.72
Media Library /wp-admin/upload.php3.25 ▲0.0233.90 ▼1.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Text Widget Fullscreen
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼0.741.67 ▼0.1243.81 ▼0.04
Dashboard /wp-admin2,209 ▲185.87 ▲0.00101.56 ▼4.6740.03 ▼1.48
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0141.14 ▲0.5736.24 ▲0.13
Add New Post /wp-admin/post-new.php1,538 ▲2423.08 ▲5.51591.67 ▼7.8847.45 ▼3.91
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0195.29 ▼5.2441.60 ▲0.90

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: text-widget, editor, text, widget, fullscreen

text-widget-fullscreen/text-widget-fullscreen.php Passed 13 tests

The main PHP script in "Text Widget Fullscreen" version 1.2 is automatically included on every request by WordPress
61 characters long description:
This plugin will add a fullscreen button to your Text Widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected448 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript278166332
PHP44030101
CSS23015

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.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions7
▷ Named functions7100.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
No PNG files were detected