89% cosmica-advance-sections

Code Review | Cosmica Advance Sections

WordPress plugin Cosmica Advance Sections scored 89% from 54 tests.

About plugin

  • Plugin page: cosmica-advance-s...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2017
  • Latest release: Jul 11, 2019
  • Number of updates: 4
  • Update frequency: every 210.2 days
  • Top authors: kapilsharma12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 11,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.59ms] Passed 4 tests

Analyzing server-side resources used by Cosmica Advance Sections
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.52 ▼8.52
Dashboard /wp-admin3.31 ▲0.0143.92 ▼3.73
Posts /wp-admin/edit.php3.43 ▲0.0746.53 ▼3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.12 ▲1.23
Media Library /wp-admin/upload.php3.23 ▲0.0135.66 ▲1.81

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cosmica Advance Sections
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.114.54 ▲2.8742.62 ▲2.03
Dashboard /wp-admin2,206 ▲155.86 ▲0.97112.89 ▼0.7843.33 ▼3.32
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0140.34 ▲1.6136.36 ▲2.53
Add New Post /wp-admin/post-new.php1,537 ▲423.34 ▲0.34620.05 ▼32.0351.86 ▲0.54
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.01101.20 ▼4.6646.74 ▼1.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: slider, cosmica advance sections, services, client logo, clients...

cosmica-advance-sections/plugin.php 85% from 13 tests

"Cosmica Advance Sections" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 190 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("cosmica-advance-sections.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin751 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112831751

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.44
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin