90% full-screen-images

Code Review | Full Screen Images

WordPress plugin Full Screen Images scored90%from 54 tests.

About plugin

  • Plugin page: full-screen-images
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Jun 15, 2019
  • Number of updates: 7
  • Update frequency: every 184.6 days
  • Top authors: kiranpotphode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Full Screen Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.43 ▼2.84
Dashboard /wp-admin3.32 ▲0.0151.13 ▲2.79
Posts /wp-admin/edit.php3.37 ▲0.0149.03 ▲2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.45 ▼8.27
Media Library /wp-admin/upload.php3.24 ▲0.0137.38 ▼1.23
Full Screen Images /wp-admin/options-general.php?page=full-screen-images-page3.2030.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Full Screen Images: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲13013.54 ▼0.808.57 ▲6.4842.36 ▼2.88
Dashboard /wp-admin2,207 ▲195.91 ▲0.06108.31 ▲4.7342.19 ▼1.85
Posts /wp-admin/edit.php2,090 ▼22.00 ▲0.0241.30 ▲0.3638.87 ▲0.28
Add New Post /wp-admin/post-new.php1,545 ▲218.31 ▲0.10601.47 ▼3.7546.83 ▼6.22
Media Library /wp-admin/upload.php1,392 ▲104.17 ▲0.0091.77 ▼6.3340.52 ▲0.55
Full Screen Images /wp-admin/options-general.php?page=full-screen-images-page7852.0226.1028.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

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: full screen, image

full-screen-images/full-screen-images.php 92% from 13 tests

"Full Screen Images" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected317 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript38636287
PHP2173830

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin