83% specia-companion

Code Review | Specia Companion

WordPress plugin Specia Companion scored83%from 54 tests.

About plugin

  • Plugin page: specia-companion
  • Plugin version: 3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 7, 2022
  • Latest release: Nov 21, 2023
  • Number of updates: 32
  • Update frequency: every 17.6 days
  • Top authors: specia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /89,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Specia Companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.62 ▼10.16
Dashboard /wp-admin3.33 ▲0.0246.93 ▼7.73
Posts /wp-admin/edit.php3.38 ▲0.0250.90 ▲3.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.13 ▼1.55
Media Library /wp-admin/upload.php3.26 ▲0.0237.88 ▲1.45

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Specia Companion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.23 ▲0.051.51 ▼0.1337.91 ▼6.66
Dashboard /wp-admin2,195 ▲155.60 ▼0.0493.83 ▼4.4541.43 ▼4.48
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0238.42 ▼1.0137.54 ▲4.72
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▼0.12669.52 ▼9.9959.99 ▲7.45
Media Library /wp-admin/upload.php1,403 ▲94.20 ▲0.04103.34 ▲8.1646.08 ▲5.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/specia-companion/inc/specia/default-pages/upload-media.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/specia-companion/inc/specia/default-pages/home-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/specia-companion/specia-companion.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/specia-companion/inc/specia/default-widgets/default-widget.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/specia-companion/inc/specia/default-pages/default-pages.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function set_theme_mod() in wp-content/plugins/specia-companion/inc/specia/specia.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Requires at least: Version format is invalid
The official readme.txt might help

specia-companion/specia-companion.php 92% from 13 tests

The primary PHP file in "Specia Companion" version 3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 283 characters long)

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
There were no executable files found in this plugin2,160 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS1235571,514
PHP89776581
JavaScript1204265

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.18
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 1.83MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/specia/images/logo/avira.png8.96KB4.65KB▼ 48.12%
inc/specia/images/logo/herpress.png5.50KB3.63KB▼ 33.91%
inc/specia/images/logo/cartable.png3.37KB2.79KB▼ 16.97%
inc/specia/images/logo/specia.png9.97KB4.29KB▼ 57.01%
inc/specia/images/logo/scelar.png2.38KB1.29KB▼ 46.07%