79% screeney

Code Review | Screeney

WordPress plugin Screeney scored79%from 54 tests.

About plugin

  • Plugin page: screeney
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Feb 15, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: enshrined (100%)Otto42 (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

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

This is a short check of server-side resources used by Screeney
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.28 ▲0.72
Dashboard /wp-admin3.40 ▲0.0948.28 ▼2.33
Posts /wp-admin/edit.php3.51 ▲0.1647.82 ▼4.65
Add New Post /wp-admin/post-new.php6.00 ▲0.1188.34 ▼20.04
Media Library /wp-admin/upload.php3.32 ▲0.0936.27 ▲1.72
Screeney /wp-admin/tools.php?page=screeney3.2934.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Screeney
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5513.31 ▼1.254.15 ▲2.5943.24 ▼1.50
Dashboard /wp-admin2,216 ▲135.84 ▼0.05106.84 ▲2.8337.15 ▼7.19
Posts /wp-admin/edit.php2,111 ▲82.08 ▲0.0841.46 ▲1.6935.56 ▲2.59
Add New Post /wp-admin/post-new.php1,541 ▲923.19 ▲0.05662.44 ▲5.7236.92 ▼14.01
Media Library /wp-admin/upload.php1,401 ▲14.26 ▼0.06104.57 ▲1.7844.48 ▼0.43
Screeney /wp-admin/tools.php?page=screeney8161.7525.7127.05

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/screeney/public/partials/screeney-public-display.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/screeney/includes/class-screeney-issue-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/screeney/admin/partials/issues.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/screeney/admin/partials/register.php:19
    • > PHP Warning
      Use of undefined constant SCREENEY_URI - assumed 'SCREENEY_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/screeney/admin/partials/project.php on line 19
    • > PHP Warning
      Use of undefined constant SCREENEY_URI - assumed 'SCREENEY_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/screeney/admin/partials/settings.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/screeney/admin/partials/modal-issue.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/screeney/admin/partials/settings.php:19
    • > PHP Warning
      Use of undefined constant SCREENEY_URI - assumed 'SCREENEY_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/screeney/admin/partials/issues.php on line 19
    • > PHP Warning
      Use of undefined constant SCREENEY_URI - assumed 'SCREENEY_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/screeney/admin/partials/team.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/screeney/admin/partials/project.php:19

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: qa, quality assurance, testing

screeney/screeney.php Passed 13 tests

The primary PHP file in "Screeney" version 1.0.0 is used by WordPress to initiate all plugin functionality
65 characters long description:
Connects your website with the Screeney bug tracking application.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected772 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP18224672633
CSS214873
JavaScript2157350
SVG10016

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.15
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin