10% singleplatform

Code Review | SinglePlatform

WordPress plugin SinglePlatform scored10%from 54 tests.

About plugin

  • Plugin page: singleplatform
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2016
  • Latest release: Jan 26, 2023
  • Number of updates: 20
  • Update frequency: every 118.7 days
  • Top authors: crussellwalker (65%)ytoruno (30%)kvaradarajan (10%)benschel (10%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,927 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

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

Analyzing server-side resources used by SinglePlatform
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.95 ▲4.81
Dashboard /wp-admin3.33 ▲0.0344.80 ▼6.81
Posts /wp-admin/edit.php3.38 ▲0.0245.07 ▼1.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0473.25 ▼19.85
Media Library /wp-admin/upload.php3.25 ▲0.0233.14 ▲0.66

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

SinglePlatform: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6513.65 ▼0.731.61 ▼0.6340.57 ▼2.07
Dashboard /wp-admin2,245 ▲575.06 ▼0.84113.50 ▼1.4489.33 ▲43.23
Posts /wp-admin/edit.php2,127 ▲382.31 ▲0.3039.34 ▼1.9137.74 ▲1.84
Add New Post /wp-admin/post-new.php1,543 ▲2423.21 ▼0.10760.40 ▲95.3236.67 ▼31.26
Media Library /wp-admin/upload.php1,424 ▲334.34 ▲0.09105.44 ▲2.6744.16 ▲1.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/singleplatform/singleplatform.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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: menus, singleplatform

singleplatform/singleplatform.php Passed 13 tests

Analyzing the main PHP file in "SinglePlatform" version 1.1.0
122 characters long description:
Official SinglePlatform plugin for WordPress. Easily display your SinglePlatform menus or listings on your WordPress site.

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 detected580 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP212949528
CSS18149
JavaScript1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/sp-logo-mark.png0.41KB0.49KB0.00%