78% cyoud-aio

Code Review | Cyoud AIO

WordPress plugin Cyoud AIO scored78%from 54 tests.

About plugin

  • Plugin page: cyoud-aio
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2018
  • Latest release: Dec 16, 2018
  • Number of updates: 8
  • Update frequency: every 16.3 days
  • Top authors: cyoud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.50ms] Passed 4 tests

A check of server-side resources used by Cyoud AIO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.90 ▼3.52
Dashboard /wp-admin3.50 ▲0.1947.76 ▼0.60
Posts /wp-admin/edit.php3.55 ▲0.1949.04 ▲2.41
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.41 ▼16.30
Media Library /wp-admin/upload.php3.36 ▲0.1240.02 ▲3.70
Dashboard /wp-admin/admin.php?page=caio3.3533.29
Advanced /wp-admin/admin.php?page=caio-advanced3.3331.51

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 25 new options
New WordPress options
caio_irPost
widget_recent-comments
caio_rvWebcmf
caio_yDecor
caio_bwmCode
caio_psIcon
caio_rvQuerys
caio_gwmtCode
caio_activate
caio_rvWPV
...

Browser metrics Passed 4 tests

Cyoud AIO: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲16713.46 ▼0.899.66 ▲7.8640.66 ▼2.62
Dashboard /wp-admin2,226 ▲495.60 ▼0.0892.33 ▼1.0142.09 ▲1.49
Posts /wp-admin/edit.php2,134 ▲372.01 ▲0.0437.59 ▲2.0336.59 ▼2.10
Add New Post /wp-admin/post-new.php1,552 ▲2422.87 ▼0.18654.28 ▼23.4551.03 ▼15.09
Media Library /wp-admin/upload.php1,425 ▲224.37 ▲0.1798.38 ▼13.5146.45 ▼4.67
Dashboard /wp-admin/admin.php?page=caio1,3731.6624.1237.51
Advanced /wp-admin/admin.php?page=caio-advanced1,1242.0226.1232.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 25 options in the database
    • caio_pvCount
    • caio_jqUpgrade
    • caio_rvEmoji
    • caio_irPost
    • db_upgraded
    • caio_tmceEx
    • caio_bwmCode
    • caio_rvScript
    • caio_rvjQuery
    • caio_rvQuerys
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cyoud-aio/inc/sidebar.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: page in wp-content/plugins/cyoud-aio/inc/sidebar.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Caio\\add_option() in wp-content/plugins/cyoud-aio/app.php:14
    • > PHP Notice
      Undefined index: page in wp-content/plugins/cyoud-aio/inc/sidebar.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/cyoud-aio/inc/dashboard.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/cyoud-aio/inc/advanced.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cyoud-aio/inc/lunar/index.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: view post count, site decoration, social icon, related post

cyoud-aio/index.php 92% from 13 tests

This is the main PHP file of "Cyoud AIO" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cyoud-aio.php" instead of "index.php")

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
No dangerous file extensions were detected1,992 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP84538958
JavaScript41611612
CSS273297
HTML100125

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/christmas/holiday_bells/images/balls/b-ball_i1.png4.89KB2.50KB▼ 48.98%
inc/christmas/holiday_bells/images/balls/b-ball_i2.png4.04KB2.36KB▼ 41.47%
inc/christmas/holiday_bells/images/balls/b-ball_n6.png7.02KB2.80KB▼ 60.13%
inc/christmas/holiday_bells/images/balls/b-ball_n8.png5.03KB2.50KB▼ 50.27%
inc/lunar/image/banner_left.png65.16KB17.56KB▼ 73.05%