83% screeny-screenerton

Code Review | Screeny Screenerton

WordPress plugin Screeny Screenerton scored 83% from 54 tests.

About plugin

  • Plugin page: screeny-screenerton
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2016
  • Latest release: Mar 19, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: binarygary (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.99ms] Passed 4 tests

Analyzing server-side resources used by Screeny Screenerton
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.79 ▲2.77
Dashboard /wp-admin3.33 ▲0.0347.15 ▼2.26
Posts /wp-admin/edit.php3.38 ▲0.0346.49 ▼0.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.85 ▼0.19
Media Library /wp-admin/upload.php3.25 ▲0.0236.30 ▼0.95

Server storage [IO: ▲0.01MB] [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
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Screeny Screenerton
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11514.78 ▲0.401.90 ▼0.6044.27 ▼3.12
Dashboard /wp-admin2,228 ▲405.88 ▲0.98103.67 ▼13.6843.73 ▼4.51
Posts /wp-admin/edit.php2,111 ▲222.05 ▲0.0435.68 ▼3.6033.69 ▼1.62
Add New Post /wp-admin/post-new.php1,550 ▲3623.30 ▲5.65666.72 ▼67.4161.45 ▲6.40
Media Library /wp-admin/upload.php1,416 ▲284.23 ▲0.0198.19 ▼14.7140.26 ▼6.44

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_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/screeny-screenerton/screenyscreenerton.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: screenshot, screenshotmachine

screeny-screenerton/screenyscreenerton.php 77% from 13 tests

"Screeny Screenerton" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("screeny-screenerton.php" instead of "screenyscreenerton.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

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
There were no executable files found in this plugin141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23438122
JavaScript10015
CSS1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected