10% mycloudpress

Code Review | MyCloudPress

WordPress plugin MyCloudPress scored10%from 54 tests.

About plugin

  • Plugin page: mycloudpress
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Jan 7, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: bigbeartechworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /566 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/mycloudpress/mycloudpress.php+33
    Uncaught Error: Class 'MyCloudPress\App' not found in wp-content/plugins/mycloudpress/mycloudpress.php:33
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.84ms] Passed 4 tests

Server-side resources used by MyCloudPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.06 ▼2.28
Dashboard /wp-admin3.31 ▲0.0050.66 ▲4.98
Posts /wp-admin/edit.php3.36 ▲0.0043.97 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.32 ▼16.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.96 ▲2.03

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

MyCloudPress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.062.01 ▲0.0844.26 ▼5.06
Dashboard /wp-admin2,206 ▲175.88 ▲1.0195.16 ▼22.1038.80 ▲0.85
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0235.31 ▼2.5131.70 ▼4.59
Add New Post /wp-admin/post-new.php1,539 ▲2523.13 ▲5.59655.19 ▼30.3353.10 ▼17.03
Media Library /wp-admin/upload.php1,382 ▼94.16 ▲0.0196.69 ▼26.6843.23 ▼8.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mycloudpress/mycloudpress.php
  • 91× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MyCloudPress\\Models\\Model' not found in wp-content/plugins/mycloudpress/app/Models/TermTaxonomy.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'MyCloudPress\\Models\\Model' not found in wp-content/plugins/mycloudpress/app/Models/Termmeta.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/mycloudpress/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/mycloudpress/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'MyCloudPress\\Services\\Service' not found in wp-content/plugins/mycloudpress/app/Services/WpSiteStatsService.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mycloudpress/vendor/guzzlehttp/psr7/tests/ResponseTest.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/mycloudpress/vendor/guzzlehttp/psr7/src/Request.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'MyCloudPress\\Controllers\\Controller' not found in wp-content/plugins/mycloudpress/app/Controllers/AdminEventsController.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mycloudpress/vendor/guzzlehttp/psr7/tests/BufferStreamTest.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mycloudpress/vendor/guzzlehttp/psr7/tests/StreamDecoratorTraitTest.php:8

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: sync, realtime, backup

mycloudpress/mycloudpress.php 85% from 13 tests

The entry point to "MyCloudPress" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,476 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP1432,5544,71213,113
Markdown984302,946
JSON500367
make211031
XML10017
CSS1001
JavaScript1001

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.27
Average class complexity8.89
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces14
Interfaces14
Traits2
Classes115
▷ Abstract classes32.61%
▷ Concrete classes11297.39%
▷ Final classes54.46%
Methods1,094
▷ Static methods494.48%
▷ Public methods98089.58%
▷ Protected methods40.37%
▷ Private methods11010.05%
Functions183
▷ Named functions6233.88%
▷ Anonymous functions12166.12%
Constants42
▷ Global constants614.29%
▷ Class constants3685.71%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.41MB with 0.23MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png174.25KB55.26KB▼ 68.29%
assets/screenshot-2.png190.96KB60.76KB▼ 68.18%
assets/icon-256x256.png41.41KB23.50KB▼ 43.26%
assets/icon-128x128.png14.59KB8.70KB▼ 40.38%