10% infomous

Code Review | Infomous

WordPress plugin Infomous scored10%from 54 tests.

About plugin

  • Plugin page: infomous
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2014
  • Latest release: Jun 25, 2014
  • Number of updates: 10
  • Update frequency: every 108.3 days
  • Top authors: Dualcube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,369 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DC_Infomous_Cloud::activate_dc_infomous_cloud() should not be called statically

Server metrics [RAM: ▼0.64MB] [CPU: ▼16.98ms] Passed 4 tests

Analyzing server-side resources used by Infomous
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0539.62 ▼4.84
Dashboard /wp-admin3.35 ▲0.0445.83 ▼5.12
Posts /wp-admin/edit.php3.39 ▲0.0446.84 ▲0.59
Add New Post /wp-admin/post-new.php3.19 ▼2.6938.31 ▼58.54
Media Library /wp-admin/upload.php3.27 ▲0.0437.39 ▲2.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
dc_infomous_cloud_installed
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Infomous
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.20 ▼1.031.82 ▼0.1643.44 ▼8.79
Dashboard /wp-admin2,229 ▲415.83 ▼0.02101.12 ▼17.8273.04 ▲30.18
Posts /wp-admin/edit.php2,112 ▲231.97 ▼0.0234.54 ▲0.3033.36 ▼4.57
Add New Post /wp-admin/post-new.php1,537 ▲2322.29 ▲4.83695.49 ▲13.0759.27 ▲4.55
Media Library /wp-admin/upload.php1,414 ▲264.27 ▲0.10108.90 ▲11.2745.75 ▲3.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method DC_Infomous_Cloud::deactivate_dc_infomous_cloud() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: news feed, social media, feed, blog feed, interactive cloud...

infomous/infomous.php 92% from 13 tests

This is the main PHP file of "Infomous" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 430 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin11,609 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS83672885,588
Sass91,152142,303
LESS91,152872,231
PHP10255226862
SVG100399
JavaScript461117
PO File14042109

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity24.75
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/question_mark.png0.86KB0.00KB▼ 100.00%
assets/images/infomous.png0.39KB0.49KB0.00%
assets/images/fpd/grid.png2.69KB0.13KB▼ 95.17%
assets/images/dualcube.png3.29KB0.65KB▼ 80.17%
assets/images/dclogo-2x.png4.35KB1.74KB▼ 60.10%