84% wp-theme-changrr-connector

Code Review | WP Theme Changrr Connector

WordPress plugin WP Theme Changrr Connector scored 84% from 54 tests.

About plugin

  • Plugin page: wp-theme-changrr-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2013
  • Latest release: Jul 13, 2013
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: dailyinvention (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 775 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.46ms] Passed 4 tests

Server-side resources used by WP Theme Changrr Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.63 ▼2.14
Dashboard /wp-admin3.31 ▲0.0144.47 ▼2.14
Posts /wp-admin/edit.php3.36 ▲0.0145.25 ▼0.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.16 ▼13.47
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▲1.75

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 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

A check of browser resources used by WP Theme Changrr Connector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼0.971.67 ▼0.0837.74 ▼5.97
Dashboard /wp-admin2,209 ▲214.87 ▼0.00106.56 ▲4.5042.80 ▼0.64
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0438.36 ▼0.6135.38 ▲0.10
Add New Post /wp-admin/post-new.php1,533 ▲1323.23 ▼0.15657.96 ▲70.4660.88 ▲12.85
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0395.50 ▼5.3742.49 ▼0.67

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-theme-changrr-connector/wp-theme-changrr-connector.php:99

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

wp-theme-changrr-connector/wp-theme-changrr-connector.php Passed 13 tests

Analyzing the main PHP file in "WP Theme Changrr Connector" version 1.0
58 characters long description:
Allows the ability to get and switch themes using XML-RPC.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1221665

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin