84% cit-media-sync

Code Review | CIT Media Sync

WordPress plugin CIT Media Sync scored84%from 54 tests.

About plugin

  • Plugin page: cit-media-sync
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Jan 6, 2013
  • Number of updates: 6
  • Update frequency: every 9.3 days
  • Top authors: Ooypunk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,004 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.79ms] Passed 4 tests

A check of server-side resources used by CIT Media Sync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.95 ▼6.46
Dashboard /wp-admin3.35 ▲0.0051.21 ▼18.80
Posts /wp-admin/edit.php3.40 ▲0.0450.70 ▼2.34
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.77 ▼15.56
Media Library /wp-admin/upload.php3.28 ▲0.0438.70 ▲4.07
CIT Media Sync /wp-admin/upload.php?page=cit-ms-sync3.2534.75

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CIT Media Sync
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.20 ▼0.092.08 ▼0.4440.70 ▼1.63
Dashboard /wp-admin2,202 ▲255.63 ▲0.0194.36 ▼4.2838.33 ▼5.61
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0639.15 ▲0.3436.73 ▲0.11
Add New Post /wp-admin/post-new.php1,531 ▲323.09 ▲0.15630.26 ▼12.5153.98 ▲4.76
Media Library /wp-admin/upload.php1,404 ▲14.24 ▲0.06106.02 ▲8.0143.31 ▼4.95
CIT Media Sync /wp-admin/upload.php?page=cit-ms-sync8502.1824.3329.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cit-media-sync/cit_media_sync.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: sync, attach, synchronization, media library, media

cit-media-sync/cit_media_sync.php 92% from 13 tests

Analyzing the main PHP file in "CIT Media Sync" version 1.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cit-media-sync.php" instead of "cit_media_sync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin260 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/generic.png0.87KB0.80KB▼ 7.65%