84% go-opencalais

Code Review | Gigaom OpenCalais

WordPress plugin Gigaom OpenCalais scored84%from 54 tests.

About plugin

  • Plugin page: go-opencalais
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Nov 4, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: misterbisson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /661 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Gigaom OpenCalais
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.60 ▼11.26
Dashboard /wp-admin3.32 ▲0.0145.72 ▼4.99
Posts /wp-admin/edit.php3.37 ▲0.0145.70 ▼1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.18 ▲3.00
Media Library /wp-admin/upload.php3.24 ▲0.0136.90 ▲2.23

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Gigaom OpenCalais
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.431.76 ▼0.7337.93 ▼9.87
Dashboard /wp-admin2,206 ▲185.86 ▲0.98112.23 ▼5.2042.01 ▼3.63
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0436.17 ▼3.1732.08 ▼6.74
Add New Post /wp-admin/post-new.php1,536 ▲223.27 ▲0.09665.96 ▼23.3346.57 ▼12.62
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0599.48 ▲6.2344.43 ▲2.67

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/go-opencalais/components/class-go-opencalais.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: taxonomies, terms, opencalais, tag suggestions, bsuite

go-opencalais/go-opencalais.php Passed 13 tests

Analyzing the main PHP file in "Gigaom OpenCalais" version 1.0
45 characters long description:
WordPress integration with the OpenCalais API

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected907 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5151152694
JavaScript15323167
CSS111246

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.45
Average class complexity24.25
▷ Minimum class complexity8.00
▷ Maximum class complexity56.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2893.33%
▷ Protected methods26.67%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin