73% satellite

Code Review | Satellite Optimization Monitoring

WordPress plugin Satellite Optimization Monitoring scored73%from 54 tests.

About plugin

  • Plugin page: satellite
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 1, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 16
  • Update frequency: every 2.6 days
  • Top authors: joshvickers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /992 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.89MB] [CPU: ▼38.14ms] Passed 4 tests

Server-side resources used by Satellite Optimization Monitoring
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0640.36 ▼3.19
Dashboard /wp-admin3.06 ▼0.2526.26 ▼30.05
Posts /wp-admin/edit.php3.06 ▼0.3024.73 ▼29.19
Add New Post /wp-admin/post-new.php3.06 ▼2.8325.76 ▼82.37
Media Library /wp-admin/upload.php3.06 ▼0.1727.01 ▼10.95

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Satellite Optimization Monitoring: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲11214.37 ▼0.293.49 ▲1.5643.96 ▼7.29
Dashboard /wp-admin2,254 ▲745.68 ▲0.07101.18 ▲3.8678.55 ▲36.46
Posts /wp-admin/edit.php2,120 ▲202.05 ▲0.0735.46 ▼0.2334.50 ▼1.27
Add New Post /wp-admin/post-new.php1,694 ▲16622.12 ▼1.25751.90 ▲85.1666.58 ▲5.07
Media Library /wp-admin/upload.php1,411 ▲114.11 ▼0.10105.89 ▼23.0867.75 ▲19.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The home option is deprecated for the family of bloginfo() functions. Use the url option instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/satellite/satellite-optimization-monitoring.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/satellite/admin/dashboard.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === satellite === )
  • Screenshots: Screenshot #1 (Performance report screenshot: https://satellite.fm/wp-content/uploads/2016/10/Optimization-report-for-direction1media.com-Satellite-WordPress-Hosting.png) image required
The official readme.txt is a good inspiration

satellite/satellite-optimization-monitoring.php 92% from 13 tests

The principal PHP file in "Satellite Optimization Monitoring" v. 1.2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("satellite.php" instead of "satellite-optimization-monitoring.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected426 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP259120392
JavaScript10234

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.25KB0.64KB▼ 48.82%